@@ -63,24 +63,24 @@ func (h *stembuildHelp) Execute(c context.Context, f *flag.FlagSet, args ...inte
6363
6464func (h * stembuildHelp ) Explain (w io.Writer ) {
6565
66- _ , _ = fmt .Fprintf (w , "%s version %s, Windows Stemcell Building Tool\n \n " , path .Base (os .Args [0 ]), version .Version )
67- _ , _ = fmt .Fprintf (w , "Usage: %s <global options> <command> <command flags>\n \n " , path .Base (os .Args [0 ]))
66+ fmt .Fprintf (w , "%s version %s, Windows Stemcell Building Tool\n \n " , path .Base (os .Args [0 ]), version .Version ) //nolint:errcheck
67+ fmt .Fprintf (w , "Usage: %s <global options> <command> <command flags>\n \n " , path .Base (os .Args [0 ])) //nolint:errcheck
6868
69- _ , _ = fmt .Fprint (w , "Commands:\n " )
69+ fmt .Fprint (w , "Commands:\n " ) //nolint:errcheck
7070 for _ , command := range * h .commands {
7171 if len (command .Name ()) < 5 { // This help align the synopses when the commands are of different lengths
72- _ , _ = fmt .Fprintf (w , " %s\t \t %s\n " , command .Name (), command .Synopsis ())
72+ fmt .Fprintf (w , " %s\t \t %s\n " , command .Name (), command .Synopsis ()) //nolint:errcheck
7373 } else {
74- _ , _ = fmt .Fprintf (w , " %s\t %s\n " , command .Name (), command .Synopsis ())
74+ fmt .Fprintf (w , " %s\t %s\n " , command .Name (), command .Synopsis ()) //nolint:errcheck
7575 }
7676 }
7777
78- _ , _ = fmt .Fprint (w , "\n Global Options:\n " )
78+ fmt .Fprint (w , "\n Global Options:\n " ) //nolint:errcheck
7979 h .topLevelFlags .VisitAll (func (f * flag.Flag ) {
8080 if len (f .Name ) > 1 {
81- _ , _ = fmt .Fprintf (w , " -%s\t %s\n " , f .Name , f .Usage )
81+ fmt .Fprintf (w , " -%s\t %s\n " , f .Name , f .Usage ) //nolint:errcheck
8282 } else {
83- _ , _ = fmt .Fprintf (w , " -%s\t \t %s\n " , f .Name , f .Usage )
83+ fmt .Fprintf (w , " -%s\t \t %s\n " , f .Name , f .Usage ) //nolint:errcheck
8484 }
8585 })
8686}
0 commit comments