diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-08-19 21:30:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-19 21:30:01 +0800 |
commit | c6143edb4425cb59266dea30bc85877a49355aa6 (patch) | |
tree | 6e500b7135115574e8b68422becba8eff531a51b /internal/osutil/osutil.go | |
parent | 252d0fd9775e40b641e5edc6facb147741c3b217 (diff) |
osutil: update docstring and tests (#6255)
Diffstat (limited to 'internal/osutil/osutil.go')
-rw-r--r-- | internal/osutil/osutil.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/osutil/osutil.go b/internal/osutil/osutil.go index 4f871587..b5c82455 100644 --- a/internal/osutil/osutil.go +++ b/internal/osutil/osutil.go @@ -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 { |