               if not login
                 return false
               else
-               return @isCollaborator(login)
+                return @isCollaborator(login)
             .then null, (err) =>
               # Problem logging in (maybe bad username/password)
               return false

          # Create a new hook
          # -------
          #
          # - `name` (Required string) : The name of the service that is being called. (See /hooks for the list of valid hook names.)
          # - `config` (Required hash) : A Hash containing key/value pairs to provide settings for this hook. These settings vary between the services and are defined in the github-services repo. Booleans are stored internally as “1” for true, and “0” for false. Any JSON true/false values will be converted automatically.
          # - `events` (Optional array) : Determines what events the hook is triggered for. Default: ["push"].
          # - `active` (Optional boolean) : Determines whether the hook is actually triggered on pushes.
          @createHook = (name, config, events=['push'], active=true) ->

                    _git.commit(latestCommit, tree, message)
                    .then (commitSha) =>
                      _git.updateHead(branch, commitSha)
                      .then (res) => # Finally, return the result
                        return res.object # Return something that has a `.sha` to match the signature for read
            # Return the promise
            .promise()

