diff options
author | Cameron Moore <moorereason@gmail.com> | 2018-09-06 10:53:18 -0500 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-09-07 08:25:51 +0200 |
commit | f0effac80426325040c4bc703cd610f434d0b5a8 (patch) | |
tree | 18c011f77f3777bafef9e00d98df302f0572f22f /commands/hugo.go | |
parent | be3ae3ec92da972a55112af39ce2e1c45121b9a5 (diff) |
commands: Fix golint issues
commands/hugo.go:65:1: exported method Response.IsUserError should have comment or be unexported
commands/import_jekyll.go:100:21: error strings should not be capitalized or end with punctuation or a newline
commands/server.go:417:1: receiver name sc should be consistent with previous receiver name s for serverCmd
Diffstat (limited to 'commands/hugo.go')
-rw-r--r-- | commands/hugo.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index a97c28294..3f1697ea9 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -62,6 +62,8 @@ type Response struct { Cmd *cobra.Command } +// IsUserError returns true is the Response error is a user error rather than a +// system error. func (r Response) IsUserError() bool { return r.Err != nil && isUserError(r.Err) } |