Skip to content

Commit

Permalink
fix missing spinner issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhadfield committed Apr 29, 2024
1 parent 1270c39 commit ab99122
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion providers/annotated/annotated.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ func getValidFilePathsFromDir(l *slog.Logger, dir string) (paths []os.DirEntry)
func LoadFilePrefixesWithAnnotationsFromPath(path string, prefixesWithAnnotations map[netip.Prefix][]annotation) error {
info, err := os.Stat(path)
if os.IsNotExist(err) {
return fmt.Errorf("file does not exist: %w", err)
return err
}

path, err = filepath.Abs(path)
Expand Down
14 changes: 0 additions & 14 deletions providers/azure/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,20 +279,6 @@ func (c *ProviderClient) CreateTable(data []byte) (*table.Writer, error) {
return nil, fmt.Errorf("error unmarshalling azure data: %w", err)
}

//if err != nil {
// switch {
// case errors.Is(err, providers.ErrNoDataFound):
// return nil, fmt.Errorf("data not loaded: %w", err)
// case errors.Is(err, providers.ErrFailedToFetchData):
// return nil, err
// case errors.Is(err, providers.ErrNoMatchFound):
// // reset the error as no longer useful for table creation
// return nil, nil
// default:
// return nil, fmt.Errorf("error loading azure api response: %w", err)
// }
//}

tw := table.NewWriter()

var rows []table.Row
Expand Down
3 changes: 0 additions & 3 deletions providers/ptr/ptr.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,6 @@ func unmarshalResponse(data []byte) (*HostSearchResult, error) {
res.Raw = data
res.Data = uData

d, _ := json.MarshalIndent(res, "", " ")
fmt.Println(string(d))

return &res, nil
}

Expand Down

0 comments on commit ab99122

Please sign in to comment.