File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ func New() *cobra.Command {
67
67
68
68
// sayHelloTo prints the greetings to the given args. It is the main function of
69
69
// "hello" command.
70
- func (c * Command ) sayHelloTo (cmd * cobra.Command , args []string ) error {
70
+ func (c * Command ) sayHelloTo (_ * cobra.Command , args []string ) error {
71
71
msgToGreet := "Hi!"
72
72
73
73
if len (args ) > 0 {
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ func reverseString(input string) string {
74
74
// sayHelloWorld is the main function of "world" command.
75
75
// It prints "Hello, world!" or if "--reverse" flag was set then prints
76
76
// "!dlrow ,olleH".
77
- func (c * Command ) sayHelloWorld (cmd * cobra.Command , args []string ) error {
77
+ func (c * Command ) sayHelloWorld (_ * cobra.Command , _ []string ) error {
78
78
msgToGreet := "Hello, world!"
79
79
80
80
if c .isReverse {
You can’t perform that action at this time.
0 commit comments