Skip to content

Commit

Permalink
fix: un-used args (golangci-lint error)
Browse files Browse the repository at this point in the history
  • Loading branch information
KEINOS committed Apr 2, 2023
1 parent 4d2c9ab commit 489c03b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/cmdhello/cmd_hello.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func New() *cobra.Command {

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

if len(args) > 0 {
Expand Down
2 changes: 1 addition & 1 deletion cmd/cmdhello/cmdworld/cmd_world.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func reverseString(input string) string {
// sayHelloWorld is the main function of "world" command.
// It prints "Hello, world!" or if "--reverse" flag was set then prints
// "!dlrow ,olleH".
func (c *Command) sayHelloWorld(cmd *cobra.Command, args []string) error {
func (c *Command) sayHelloWorld(_ *cobra.Command, _ []string) error {
msgToGreet := "Hello, world!"

if c.isReverse {
Expand Down

0 comments on commit 489c03b

Please sign in to comment.