summaryrefslogtreecommitdiffstats
path: root/modules/user
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-11-24 17:37:11 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2016-11-24 17:37:11 +0800
commit46ecb0a14d6e4f0e8fb1d312133a14fe2f295aed (patch)
tree94bfb072ca91d59c9f786b0bbfd6b0e519d995fe /modules/user
parent6ed7f269f198b5a57e5bc7eca6ddec4980417899 (diff)
downloadgitea-46ecb0a14d6e4f0e8fb1d312133a14fe2f295aed.tar.gz
gitea-46ecb0a14d6e4f0e8fb1d312133a14fe2f295aed.zip
golint fixed for modules/user
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/user.go1
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 {