mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
commands: Fix golint issues
commands/hugo.go:65:1: exported method Response.IsUserError should have comment or be unexported
commands/import_jekyll.go💯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
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
be3ae3ec92
commit
f0effac804
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user