mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 17:17:36 +02:00
Add tests for CurrentUsername() (#88)
This commit is contained in:
1 parent
1cb5b0e2f6
commit
d318f612a9
2 files changed
+23
-3
No files matched your search
@@ -4,9 +4,7 @@
|
||||
|
||||
package user
|
||||
|
||||
import (
|
||||
"os"
|
||||
)
|
||||
import "os"
|
||||
|
||||
func CurrentUsername() string {
|
||||
curUserName := os.Getenv("USER")
|
||||
|
||||
Reference in new issue
Block a user