Skip to content

Commit f00236a

Browse files
committed
Fix linter warnings
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent bc769b7 commit f00236a

File tree

18 files changed

+43
-32
lines changed

18 files changed

+43
-32
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ endif
4747
### These variables should not need tweaking.
4848
###
4949

50-
SRC_PKGS := cmds context *.go
51-
SRC_DIRS := $(SRC_PKGS) hack/gendocs # directories which hold app source (not vendored)
50+
SRC_PKGS := cmds context
51+
SRC_DIRS := $(SRC_PKGS) *.go hack/gendocs # directories which hold app source (not vendored)
5252

5353
DOCKER_PLATFORMS := linux/amd64 linux/arm linux/arm64
5454
BIN_PLATFORMS := $(DOCKER_PLATFORMS) windows/amd64 darwin/amd64

cmds/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func NewCmdConfig() *cobra.Command {
2525
Example: "osm config view",
2626
DisableAutoGenTag: true,
2727
Run: func(cmd *cobra.Command, args []string) {
28-
cmd.Help()
28+
_ = cmd.Help()
2929
},
3030
}
3131

cmds/config/current.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func newCmdCurrent() *cobra.Command {
3232
DisableAutoGenTag: true,
3333
Run: func(cmd *cobra.Command, args []string) {
3434
if len(args) > 0 {
35-
cmd.Help()
35+
_ = cmd.Help()
3636
os.Exit(1)
3737
}
3838
currentContext(otx.GetConfigPath(cmd))

cmds/config/get.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func newCmdGet() *cobra.Command {
3434
DisableAutoGenTag: true,
3535
Run: func(cmd *cobra.Command, args []string) {
3636
if len(args) > 0 {
37-
cmd.Help()
37+
_ = cmd.Help()
3838
os.Exit(1)
3939
}
4040
getContexts(otx.GetConfigPath(cmd))

cmds/config/set.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ func newCmdSet() *cobra.Command {
7171
Run: func(cmd *cobra.Command, args []string) {
7272
if len(args) == 0 {
7373
term.Errorln("Provide context name as argument. See examples:")
74-
cmd.Help()
74+
_ = cmd.Help()
7575
os.Exit(1)
7676
} else if len(args) > 1 {
77-
cmd.Help()
77+
_ = cmd.Help()
7878
os.Exit(1)
7979
}
8080

cmds/config/use.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ func newCmdUse() *cobra.Command {
3333
Run: func(cmd *cobra.Command, args []string) {
3434
if len(args) == 0 {
3535
term.Errorln("Provide context name as argument. See examples:")
36-
cmd.Help()
36+
_ = cmd.Help()
3737
os.Exit(1)
3838
} else if len(args) > 1 {
39-
cmd.Help()
39+
_ = cmd.Help()
4040
os.Exit(1)
4141
}
4242

cmds/config/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func newCmdView() *cobra.Command {
3333
DisableAutoGenTag: true,
3434
Run: func(cmd *cobra.Command, args []string) {
3535
if len(args) > 0 {
36-
cmd.Help()
36+
_ = cmd.Help()
3737
os.Exit(1)
3838
}
3939
viewContext(otx.GetConfigPath(cmd))

cmds/lc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func NewCmdListContainers() *cobra.Command {
3939
DisableAutoGenTag: true,
4040
Run: func(cmd *cobra.Command, args []string) {
4141
if len(args) > 1 {
42-
cmd.Help()
42+
_ = cmd.Help()
4343
os.Exit(1)
4444
}
4545

cmds/ls.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ func NewCmdListIetms() *cobra.Command {
4343
Run: func(cmd *cobra.Command, args []string) {
4444
if len(args) == 0 {
4545
term.Errorln("Provide container name as argument. See examples:")
46-
cmd.Help()
46+
_ = cmd.Help()
4747
os.Exit(1)
4848
} else if len(args) > 1 {
49-
cmd.Help()
49+
_ = cmd.Help()
5050
os.Exit(1)
5151
}
5252

cmds/mc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ func NewCmdMakeContainer() *cobra.Command {
3939
Run: func(cmd *cobra.Command, args []string) {
4040
if len(args) == 0 {
4141
term.Errorln("Provide container name as argument. See examples:")
42-
cmd.Help()
42+
_ = cmd.Help()
4343
os.Exit(1)
4444
} else if len(args) > 1 {
45-
cmd.Help()
45+
_ = cmd.Help()
4646
os.Exit(1)
4747
}
4848

0 commit comments

Comments
 (0)