Skip to content

Commit 2cc5a91

Browse files
authored
Merge pull request #1260 from coolljt0725/remove_redundant
Cleanup: remove redundant code
2 parents eedebb8 + 689a116 commit 2cc5a91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcontainer/user/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ func GetExecUser(userSpec string, defaults *ExecUser, passwd, group io.Reader) (
343343
if len(groups) > 0 {
344344
// First match wins, even if there's more than one matching entry.
345345
user.Gid = groups[0].Gid
346-
} else if groupArg != "" {
346+
} else {
347347
// If we can't find a group with the given name, the only other valid
348348
// option is if it's a numeric group name with no associated entry in group.
349349

0 commit comments

Comments
 (0)