summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2016-11-24 11:33:47 +0100
committerGitHub <noreply@github.com>2016-11-24 11:33:47 +0100
commit2ccdcda0720c935f5db2b9a4fbd072fbc47ebb02 (patch)
treed7c35a3561e67c9b6dadb35e4c1d96e536061343 /modules
parent0a66c2a2d96d989096876c51f05f6230c593bec2 (diff)
parent46ecb0a14d6e4f0e8fb1d312133a14fe2f295aed (diff)
downloadgitea-2ccdcda0720c935f5db2b9a4fbd072fbc47ebb02.tar.gz
gitea-2ccdcda0720c935f5db2b9a4fbd072fbc47ebb02.zip
Merge pull request #235 from lunny/lunny/golint_modules_user
golint fixed for modules/user
Diffstat (limited to 'modules')
-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 {