fix errcheck linter warning
This commit is contained in:
parent
6b34fa2a27
commit
ae3aacb964
1 changed files with 3 additions and 1 deletions
|
|
@ -65,7 +65,9 @@ func newSSHCmd(app *App, f *cmdutil.Factory) *cobra.Command {
|
|||
sshCmd.Flags().BoolVarP(&opts.debug, "debug", "d", false, "Log debug data to a file")
|
||||
sshCmd.Flags().StringVarP(&opts.debugFile, "debug-file", "", "", "Path of the file log to")
|
||||
sshCmd.Flags().BoolVar(&opts.stdio, "stdio", false, "Proxy sshd connection to stdio")
|
||||
sshCmd.Flags().MarkHidden("stdio")
|
||||
if err := sshCmd.Flags().MarkHidden("stdio"); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "%v\n", err)
|
||||
}
|
||||
|
||||
sshCmd.AddCommand(newConfigCmd(app, f))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue