 # @param [Object] error any error returned with the response
 # @param [Object] body the body of the response
 #
-isSuccessful = (error, body) -> 
+isSuccessful = (error, body) ->
   !error \
   && body \
   && body.hits \

# @param [Number] res the resolution code of the image to get
#
buildUrl = (apiKey, id, res) ->
  'https://pixabay.com/api/?key=' \
    + user.apiKey \
    + (if res > 1 then '&response_group=high_resolution' else '') \
    + '&id=' \
    + id

    
# Checks whether or not a resolution code is valid.
#
# @param [Number] res the resolution code to check.
#

]


# Redacts the user's API key from the given URL.
#
# @param [String] url the URL to redact the API key from
#
redactApiKey = (url) -> url.replace user.apiKey, '[NOPE]'


