comparison 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
comparison
equal deleted inserted replaced
4846:c69e35ec6adf 4847:4847ac70103a
82 dur, err := time.ParseDuration(s) 82 dur, err := time.ParseDuration(s)
83 if err != nil { 83 if err != nil {
84 return err 84 return err
85 } 85 }
86 if dur < 0 { 86 if dur < 0 {
87 return errors.New("duration has to be none negative.") 87 return errors.New("duration has to be none negative")
88 } 88 }
89 *cd = ConfigDuration{dur} 89 *cd = ConfigDuration{dur}
90 return nil 90 return nil
91 } 91 }
92 92