Skip to content

Commit

Permalink
Fixes incorrect comments re: returning nil instead of throwing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jburnim committed Jul 19, 2016
1 parent 7baa192 commit c764eb5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/sift/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,8 @@ def track(event, properties = {}, opts = {})
#
# ==== Returns:
#
# A Response object containing a status code, status message, and, if
# successful, the user's score(s). Returns nil on a connection error
# (timeout, broken connection, etc.).
# A Response object containing a status code, status message, and,
# if successful, the user's score(s).
#
def score(user_id, opts = {})
abuse_types = opts[:abuse_types]
Expand Down Expand Up @@ -351,8 +350,6 @@ def label(user_id, properties = {}, opts = {})
# ==== Returns:
#
# A Response object is returned with only an http code of 204.
# Returns nil on a connection error (timeout, broken connection,
# etc.).
#
def unlabel(user_id, opts = {})
abuse_type = opts[:abuse_type]
Expand Down

0 comments on commit c764eb5

Please sign in to comment.