Mercurial > gemma
diff pkg/models/importbase.go @ 4847:4847ac70103a
Made staticcheck happy.
- error strings should not end with punctuation or a newline (ST1005)
- error strings should not be capitalized (ST1005)
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 18 Nov 2019 11:54:20 +0100 |
parents | 5826d4de0e40 |
children | 1222b777f51f |
line wrap: on
line diff
--- a/pkg/models/importbase.go Thu Nov 14 14:53:15 2019 +0100 +++ b/pkg/models/importbase.go Mon Nov 18 11:54:20 2019 +0100 @@ -84,7 +84,7 @@ return err } if dur < 0 { - return errors.New("duration has to be none negative.") + return errors.New("duration has to be none negative") } *cd = ConfigDuration{dur} return nil