       if shouldTransitionRegex.test(message)
         [ __, toState] =  message.match shouldTransitionRegex
 
-    fetch "#{jiraUrl}/rest/api/2/user/search?username=#{msg.message.user.email_address}"
+    fetch("#{jiraUrl}/rest/api/2/user/search?username=#{msg.message.user.email_address}")
     .then (user) ->
       reporter = user[0] if user and user.length is 1
       quoteRegex = /`{1,3}([^]*?)`{1,3}/

    slackUser = lookupSlackUser person

    if slackUser
      fetch "#{jiraUrl}/rest/api/2/user/search?username=#{slackUser.email_address}"
      .then (user) ->
        jiraUser = user[0] if user and user.length is 1
        if jiraUser

      when "down", "bottom" then direction = "Bottom"
      else throw "invalid direction"

    fetch("#{jiraUrl}/rest/api/2/issue/#{ticket}")
    .then (json) ->
      if json.id
        fetch "#{jiraUrl}/secure/Rank#{direction}.jspa?issueId=#{json.id}"
        #Note: this fetch returns HTML and cannot be validated/parsed for success
      else
        throw "Cannot find ticket `#{ticket}`"
    .then () ->
      msg.send "<@#{msg.message.user.id}> Ranked `#{ticket}` to `#{direction}`"
    .catch (error) ->
