     @windows.splice(currentIndex, 1) if currentIndex > -1
 
   getLastFocusedWindow: (predicate) =>
-    predicate ?= (win) => true
+    predicate ?= (win) -> true
     @windows.find(predicate)
 
-  all: () =>
+  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) ->

    if parsedUrl.host is 'core'
      predicate = require('../core-uri-handlers').windowPredicate(parsedUrl)
      bestWindow = @getLastFocusedWindow (win) ->
        not win.isSpecWindow() and predicate(win)

    bestWindow ?= @getLastFocusedWindow (win) -> not win.isSpecWindow()
    if bestWindow?
      bestWindow.sendURIMessage url
      bestWindow.focus()
