mirror of
https://gitee.com/gitea/gitea.git
synced 2024-12-26 15:52:57 +08:00
Merge pull request #235 from lunny/lunny/golint_modules_user
golint fixed for modules/user
This commit is contained in:
commit
2ccdcda072
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user