From a1a3e2d7bf40fe08c63fb55bd45a861fa925138e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Fri, 17 Jul 2020 19:11:53 +0200 Subject: [PATCH] Pass FlagError by reference --- command/gist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/gist.go b/command/gist.go index 477702ab7..8461a6866 100644 --- a/command/gist.go +++ b/command/gist.go @@ -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 },