Error strings should not be capitalized

Reported by staticcheck 2022.1.2 (v0.3.2)

See: staticcheck.io
This commit is contained in:
albertony
2022-06-08 22:54:39 +02:00
parent 027746ef6e
commit fdd2f8e6d2
65 changed files with 159 additions and 159 deletions

View File

@@ -40,7 +40,7 @@ func (l *CacheMode) Set(s string) error {
return nil
}
}
return fmt.Errorf("Unknown cache mode level %q", s)
return fmt.Errorf("unknown cache mode level %q", s)
}
// Type of the value
@@ -52,7 +52,7 @@ func (l *CacheMode) Type() string {
func (l *CacheMode) UnmarshalJSON(in []byte) error {
return fs.UnmarshalJSONFlag(in, l, func(i int64) error {
if i < 0 || i >= int64(len(cacheModeToString)) {
return fmt.Errorf("Unknown cache mode level %d", i)
return fmt.Errorf("unknown cache mode level %d", i)
}
*l = CacheMode(i)
return nil