Skip to content

Commit

Permalink
ignore some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed Aug 22, 2024
1 parent 3ab72d8 commit 516cf75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/core/autocomplete_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func AutocompleteProfileName() AutoCompleteArgFunc {
}
}

if strings.HasPrefix(scw.DefaultProfileName, prefix) {
if strings.HasPrefix(scw.DefaultProfileName, prefix) { //nolint:gocritic
res = append(res, scw.DefaultProfileName)
}
return res
Expand Down
2 changes: 1 addition & 1 deletion internal/core/cobra_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func handleUnmarshalErrors(cmd *Command, unmarshalErr *args.UnmarshalArgError) e

switch e := wrappedErr.(type) {
case *args.CannotUnmarshalError:
switch e.Err.(type) {
switch e.Err.(type) { //nolint:gocritic
case *args.CannotParseBoolError:
return &CliError{
Err: errors.New(""),
Expand Down
2 changes: 1 addition & 1 deletion internal/gofields/gofields.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func listFields(t reflect.Type, parents []string, filter ListFieldFilter) []stri

fieldParents := parents
if !field.Anonymous {
fieldParents = append(parents, field.Name)
fieldParents = append(parents, field.Name) //nolint:gocritic
}

res = append(res, listFields(field.Type, fieldParents, filter)...)
Expand Down

0 comments on commit 516cf75

Please sign in to comment.