Skip to content

Commit 489c03b

Browse files
committed
fix: un-used args (golangci-lint error)
1 parent 4d2c9ab commit 489c03b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/cmdhello/cmd_hello.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func New() *cobra.Command {
6767

6868
// sayHelloTo prints the greetings to the given args. It is the main function of
6969
// "hello" command.
70-
func (c *Command) sayHelloTo(cmd *cobra.Command, args []string) error {
70+
func (c *Command) sayHelloTo(_ *cobra.Command, args []string) error {
7171
msgToGreet := "Hi!"
7272

7373
if len(args) > 0 {

cmd/cmdhello/cmdworld/cmd_world.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func reverseString(input string) string {
7474
// sayHelloWorld is the main function of "world" command.
7575
// It prints "Hello, world!" or if "--reverse" flag was set then prints
7676
// "!dlrow ,olleH".
77-
func (c *Command) sayHelloWorld(cmd *cobra.Command, args []string) error {
77+
func (c *Command) sayHelloWorld(_ *cobra.Command, _ []string) error {
7878
msgToGreet := "Hello, world!"
7979

8080
if c.isReverse {

0 commit comments

Comments
 (0)