This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
gitea
Watch
3
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Merge pull request
#235
from lunny/lunny/golint_modules_user
golint fixed for modules/user
for-closed-social
Thomas Boerger
8 years ago
committed by
GitHub
parent
0a66c2a2d9
46ecb0a14d
commit
2ccdcda072
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
modules/user/user.go
+ 1
- 0
modules/user/user.go
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
{
Write
Preview
Loading…
Cancel
Save