Skip to content

Commit 8e3e74e

Browse files
committed
Rely on success method on response instead of checking status code
1 parent 208cd00 commit 8e3e74e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/zero_push/client.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ def initialize(auth_token)
1414
#
1515
# @return [Boolean]
1616
def verify_credentials
17-
response = client.get('/verify_credentials')
18-
response.status == 200
17+
client.get('/verify_credentials').success?
1918
end
2019

2120
# Sends a notification to the list of devices

0 commit comments

Comments
 (0)