mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 01:40:36 +00:00
golint fixed for modules/user
This commit is contained in:
parent
6ed7f269f1
commit
46ecb0a14d
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ package user
|
||||||
|
|
||||||
import "os"
|
import "os"
|
||||||
|
|
||||||
|
// CurrentUsername return current login OS user name
|
||||||
func CurrentUsername() string {
|
func CurrentUsername() string {
|
||||||
curUserName := os.Getenv("USER")
|
curUserName := os.Getenv("USER")
|
||||||
if len(curUserName) > 0 {
|
if len(curUserName) > 0 {
|
||||||
|
|
Loading…
Reference in a new issue