Skip to content

Commit 7605ba2

Browse files
Fix check for empty string (#116)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
1 parent a1638a0 commit 7605ba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lorem_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func TestTextNotEmpty(t *testing.T) {
5555
l := New().Lorem()
5656
for i := 1; i < 255; i++ {
5757
text := l.Text(i)
58-
Expect(t, true, len(text) != 0)
58+
Expect(t, true, text != "")
5959
}
6060
}
6161

0 commit comments

Comments
 (0)