summaryrefslogtreecommitdiffstats
path: root/api4/file_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/file_test.go')
-rw-r--r--api4/file_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/api4/file_test.go b/api4/file_test.go
index 0d44f2c86..394406d6e 100644
--- a/api4/file_test.go
+++ b/api4/file_test.go
@@ -151,7 +151,7 @@ func TestGetFile(t *testing.T) {
data, resp := Client.GetFile(fileId)
CheckNoError(t, resp)
- if data == nil || len(data) == 0 {
+ if len(data) == 0 {
t.Fatal("should not be empty")
}
@@ -268,7 +268,7 @@ func TestGetFileThumbnail(t *testing.T) {
data, resp := Client.GetFileThumbnail(fileId)
CheckNoError(t, resp)
- if data == nil || len(data) == 0 {
+ if len(data) == 0 {
t.Fatal("should not be empty")
}
@@ -395,7 +395,7 @@ func TestGetFilePreview(t *testing.T) {
data, resp := Client.GetFilePreview(fileId)
CheckNoError(t, resp)
- if data == nil || len(data) == 0 {
+ if len(data) == 0 {
t.Fatal("should not be empty")
}