summaryrefslogtreecommitdiffstats
path: root/api4/user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/user_test.go')
-rw-r--r--api4/user_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/api4/user_test.go b/api4/user_test.go
index 5424a1ee2..0121c71af 100644
--- a/api4/user_test.go
+++ b/api4/user_test.go
@@ -821,7 +821,7 @@ func TestGetProfileImage(t *testing.T) {
data, resp := Client.GetProfileImage(user.Id, "")
CheckNoError(t, resp)
- if data == nil || len(data) == 0 {
+ if len(data) == 0 {
t.Fatal("Should not be empty")
}
@@ -1860,7 +1860,7 @@ func TestRevokeSessions(t *testing.T) {
CheckBadRequestStatus(t, resp)
status, resp := Client.RevokeSession(user.Id, session.Id)
- if status == false {
+ if !status {
t.Fatal("user session revoke unsuccessful")
}
CheckNoError(t, resp)
@@ -1912,7 +1912,7 @@ func TestRevokeAllSessions(t *testing.T) {
CheckBadRequestStatus(t, resp)
status, resp := Client.RevokeAllSessions(user.Id)
- if status == false {
+ if !status {
t.Fatal("user all sessions revoke unsuccessful")
}
CheckNoError(t, resp)