mirror of
https://github.com/gogs/gogs.git
synced 2025-12-22 00:00:07 +01:00
osutil: update docstring and tests (#6255)
This commit is contained in:
@@ -34,7 +34,7 @@ func IsExist(path string) bool {
|
||||
return err == nil || os.IsExist(err)
|
||||
}
|
||||
|
||||
// CurrentUsername returns the current system user
|
||||
// CurrentUsername returns the username of the current user.
|
||||
func CurrentUsername() string {
|
||||
username := os.Getenv("USER")
|
||||
if len(username) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user