         window.browserWindow.removeListener 'blur', blurHandler
       window.browserWindow.webContents.once 'did-finish-load', => @saveState(false)
 
-  getAllWindows: () =>
+  getAllWindows: =>
     @windows.all().slice()
 
   getLastFocusedWindow: (predicate) =>

    @windows.splice(currentIndex, 1) if currentIndex > -1

  getLastFocusedWindow: (predicate) =>
    predicate ?= (win) => true
    @windows.find(predicate)

  all: () =>
    @windows

      windowDimensions = @getDimensionsForNewWindow()
      win = new AtomWindow(this, @fileRecoveryService, {resourcePath, windowInitializationScript, devMode, safeMode, windowDimensions, env})
      @windows.addWindow(win)
      win.on 'window:loaded', ->
        win.sendURIMessage url

  findPackageWithName: (packageName, devMode) ->
