mirror of https://gitlab.com/gitlab-org/cli.git
Remove non set case
This commit is contained in:
parent
451f491e75
commit
ed1c4ca75d
|
@ -156,10 +156,6 @@ func GitUserName() ([]byte, error) {
|
|||
return []byte{}, err
|
||||
}
|
||||
|
||||
if string(output) == "" {
|
||||
return []byte(os.Getenv("USER")), nil
|
||||
}
|
||||
|
||||
return output, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue