Merge pull request #1260 from coolljt0725/remove_redundant

Cleanup: remove redundant code
This commit is contained in:
Daniel, Dao Quang Minh 2017-01-11 17:18:15 +00:00 committed by GitHub
commit 2cc5a91249
1 changed files with 1 additions and 1 deletions

View File

@ -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.