Skip to content

Commit

Permalink
Merge pull request #38 from SiftScience/jburnim_comment_fix
Browse files Browse the repository at this point in the history
Fixes incorrect comments re: returning nil instead of throwing.
  • Loading branch information
jburnim authored Jul 19, 2016
2 parents 7baa192 + c764eb5 commit 981100f
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 981100f

Please sign in to comment.