golint fixed for modules/user

release/v1.15
Lunny Xiao 2016-11-24 17:37:11 +08:00
parent 6ed7f269f1
commit 46ecb0a14d
1 changed files with 1 additions and 0 deletions

View File

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