This website works better with JavaScript.
Home
Explore
Help
Sign In
mirrors
/
gitea
mirror of
https://github.com/go-gitea/gitea.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
210
Wiki
Activity
Browse Source
golint fixed for modules/user
tags/v1.0.0
Lunny Xiao
7 years ago
parent
6ed7f269f1
commit
46ecb0a14d
1 changed files
with
1 additions
and
0 deletions
Split View
Show Diff Stats
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