0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-21 23:31:40 +01:00

Merge pull request #235 from lunny/lunny/golint_modules_user

golint fixed for modules/user
This commit is contained in:
Thomas Boerger 2016-11-24 11:33:47 +01:00 committed by GitHub
commit 2ccdcda072

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 {