From 5a4648cdd697be92d33be55cd85069365cce2588 Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Sat, 20 Oct 2018 23:25:14 +0200 Subject: Remove check for negative length (#5120) --- modules/user/user_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/user') 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 -- cgit v1.2.3