diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2016-11-24 17:37:11 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2016-11-24 17:37:11 +0800 |
commit | 46ecb0a14d6e4f0e8fb1d312133a14fe2f295aed (patch) | |
tree | 94bfb072ca91d59c9f786b0bbfd6b0e519d995fe /modules/user | |
parent | 6ed7f269f198b5a57e5bc7eca6ddec4980417899 (diff) | |
download | gitea-46ecb0a14d6e4f0e8fb1d312133a14fe2f295aed.tar.gz gitea-46ecb0a14d6e4f0e8fb1d312133a14fe2f295aed.zip |
golint fixed for modules/user
Diffstat (limited to 'modules/user')
-rw-r--r-- | modules/user/user.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/user/user.go b/modules/user/user.go index 972629eae3..b9911e6f52 100644 --- a/modules/user/user.go +++ b/modules/user/user.go @@ -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 { |