mirror of
https://github.com/go-gitea/gitea
synced 2025-07-12 13:37:20 +00:00
Remove check for negative length (#5120)
This commit is contained in:
committed by
techknowlogick
parent
583b1b8429
commit
5a4648cdd6
@ -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
|
||||
|
Reference in New Issue
Block a user