Skip to content

Commit ae3aacb

Browse files
committed
fix errcheck linter warning
1 parent 6b34fa2 commit ae3aacb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/cmd/codespace/ssh.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ func newSSHCmd(app *App, f *cmdutil.Factory) *cobra.Command {
6565
sshCmd.Flags().BoolVarP(&opts.debug, "debug", "d", false, "Log debug data to a file")
6666
sshCmd.Flags().StringVarP(&opts.debugFile, "debug-file", "", "", "Path of the file log to")
6767
sshCmd.Flags().BoolVar(&opts.stdio, "stdio", false, "Proxy sshd connection to stdio")
68-
sshCmd.Flags().MarkHidden("stdio")
68+
if err := sshCmd.Flags().MarkHidden("stdio"); err != nil {
69+
fmt.Fprintf(os.Stderr, "%v\n", err)
70+
}
6971

7072
sshCmd.AddCommand(newConfigCmd(app, f))
7173

0 commit comments

Comments
 (0)