           @emitter.emit 'pub-start',
             title: 'Pub Upgrade'
           @run pubspecRoot, 'upgrade'
-        () => 1
+        => 1
       )
 
   observePubspec: (pubspecRoot) =>

          @emitter.emit 'pub-start',
            title: 'Pub Get'
          @run pubspecRoot, 'get'
        () => 1
      )
  upgrade: =>
    @whenPubspecPresent =>

  # Select a pubspecRoot to operate on
  # Returns Promise.
  getPubspecRoot: =>
    if Utils.getDartProjectPaths().length is 0
      return Promise.reject('No valid Dart project paths')

    if Utils.getDartProjectPaths().length is 1
      return Promise.resolve(Utils.getDartProjectPaths()[0])

    picker = new ProjectPicker()
