chore: upgrade golangci-lint

This commit is contained in:
Oleg Lobanov
2021-07-26 12:00:05 +02:00
parent 201329abce
commit 34d7d2c8c4
17 changed files with 37 additions and 45 deletions

View File

@@ -28,7 +28,7 @@ You can also specify an optional parameter (index_end) so
you can remove all commands from 'index' to 'index_end',
including 'index_end'.`,
Args: func(cmd *cobra.Command, args []string) error {
if err := cobra.RangeArgs(1, 2)(cmd, args); err != nil {
if err := cobra.RangeArgs(1, 2)(cmd, args); err != nil { //nolint:gomnd
return err
}