Skip to content

Commit

Permalink
Fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-kent committed May 22, 2015
1 parent 8307236 commit fd06ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func main() {

username := "nobody"
user, err := user.Current()
if err != nil && user == nil && len(user.Username) > 0 {
if err == nil && user != nil && len(user.Username) > 0 {
username = user.Username
}

Expand Down

0 comments on commit fd06ec1

Please sign in to comment.