Merge pull request #235 from lunny/lunny/golint_modules_user

golint fixed for modules/user
release/v1.15
Thomas Boerger 2016-11-24 11:33:47 +01:00 committed by GitHub
commit 2ccdcda072
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ package user
import "os" import "os"
// CurrentUsername return current login OS user name
func CurrentUsername() string { func CurrentUsername() string {
curUserName := os.Getenv("USER") curUserName := os.Getenv("USER")
if len(curUserName) > 0 { if len(curUserName) > 0 {