Skip to content

Commit

Permalink
Merge pull request #1260 from coolljt0725/remove_redundant
Browse files Browse the repository at this point in the history
Cleanup: remove redundant code
  • Loading branch information
dqminh committed Jan 11, 2017
2 parents eedebb8 + 689a116 commit 2cc5a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcontainer/user/user.go
Expand Up @@ -343,7 +343,7 @@ func GetExecUser(userSpec string, defaults *ExecUser, passwd, group io.Reader) (
if len(groups) > 0 {
// First match wins, even if there's more than one matching entry.
user.Gid = groups[0].Gid
} else if groupArg != "" {
} else {
// If we can't find a group with the given name, the only other valid
// option is if it's a numeric group name with no associated entry in group.

Expand Down

0 comments on commit 2cc5a91

Please sign in to comment.