Skip to content

Commit 3c88fb3

Browse files
committed
user: fix ST1005: error strings should not be capitalized (staticcheck)
Error: user/user.go:447:16: ST1005: error strings should not be capitalized (staticcheck) return nil, fmt.Errorf("Unable to find additional groups %v: %w", additionalGroups, err) ^ Error: user/user.go:471:17: ST1005: error strings should not be capitalized (staticcheck) return nil, fmt.Errorf("Unable to find group %s: %w", ag, ErrNoGroupEntries) ^ Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent b54b9d7 commit 3c88fb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

user/user.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ func GetAdditionalGroups(additionalGroups []string, group io.Reader) ([]int, err
444444
return false
445445
})
446446
if err != nil {
447-
return nil, fmt.Errorf("Unable to find additional groups %v: %w", additionalGroups, err)
447+
return nil, fmt.Errorf("unable to find additional groups %v: %w", additionalGroups, err)
448448
}
449449
}
450450

@@ -468,7 +468,7 @@ func GetAdditionalGroups(additionalGroups []string, group io.Reader) ([]int, err
468468
gid, err := strconv.ParseInt(ag, 10, 64)
469469
if err != nil {
470470
// Not a numeric ID either.
471-
return nil, fmt.Errorf("Unable to find group %s: %w", ag, ErrNoGroupEntries)
471+
return nil, fmt.Errorf("unable to find group %s: %w", ag, ErrNoGroupEntries)
472472
}
473473
// Ensure gid is inside gid range.
474474
if gid < minID || gid > maxID {

0 commit comments

Comments
 (0)