diff options
author | Oleg Kovalov <iamolegkovalov@gmail.com> | 2018-10-20 23:25:14 +0200 |
---|---|---|
committer | techknowlogick <hello@techknowlogick.com> | 2018-10-20 17:25:14 -0400 |
commit | 5a4648cdd697be92d33be55cd85069365cce2588 (patch) | |
tree | 0d246271e482d8d8ffb9f357861c0db5d698064f /modules/user/user_test.go | |
parent | 583b1b84293635633199123ff759849fbd09f7f2 (diff) | |
download | gitea-5a4648cdd697be92d33be55cd85069365cce2588.tar.gz gitea-5a4648cdd697be92d33be55cd85069365cce2588.zip |
Remove check for negative length (#5120)
Diffstat (limited to 'modules/user/user_test.go')
-rw-r--r-- | modules/user/user_test.go | 2 |
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 |