Pass FlagError by reference
This commit is contained in:
parent
d90c387e04
commit
a1a3e2d7bf
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ By default, gists are private; use '--public' to make publicly listed ones.`,
|
|||
|
||||
stdinIsTTY := (info.Mode() & os.ModeCharDevice) == os.ModeCharDevice
|
||||
if stdinIsTTY {
|
||||
return cmdutil.FlagError{Err: errors.New("no filenames passed and nothing on STDIN")}
|
||||
return &cmdutil.FlagError{Err: errors.New("no filenames passed and nothing on STDIN")}
|
||||
}
|
||||
return nil
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue