 
 git = require './git'
 
-toString = (catsafe) ->
+catString = (catsafe) ->
   return if catsafe then "cat safe! 😸" else "not cat safe 😿"
 
 cats = (greyhound, catsafe, callback) ->

      return
    catsafe = catsafe is 'yes'

    message = "#{capitalize(greyhound)} is #{toString(catsafe)}"
    branch = "cats-#{greyhound}"
    user =
      name: res.message.user?.real_name,
      email: res.message.user?.profile?.email

    res.reply "Labeling #{capitalize(greyhound)} as #{toString(catsafe)}\n" +
              "Hang on a sec..."
    git.pull (err, repo) ->
      return res.reply err if err?

      return callback "Sorry, couldn't find #{greyhound} 😕"

    if greyhounds[greyhound].cats is catsafe
      return callback "#{capitalize(greyhound)} is already #{catString(catsafe)} 😝"

    greyhounds[greyhound].cats = catsafe
    git.dumpGreyhounds greyhounds, callback
