summaryrefslogtreecommitdiffstats
path: root/modules/user/user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/user_test.go')
-rw-r--r--modules/user/user_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user_test.go b/modules/user/user_test.go
index 51f10dbbd2..ae7460281f 100644
--- a/modules/user/user_test.go
+++ b/modules/user/user_test.go
@@ -18,7 +18,7 @@ func getWhoamiOutput() (string, error) {
func TestCurrentUsername(t *testing.T) {
user := CurrentUsername()
- if len(user) <= 0 {
+ if len(user) == 0 {
t.Errorf("expected non-empty user, got: %s", user)
}
// Windows whoami is weird, so just skip remaining tests