       console.log unsupported
 
     if options.coldStart or not @_hotWindows[options.windowType]?
-      @newColdWindow(options)
-    else
-      @newHotWindow(options)
-    return
+      return @newColdWindow(options)
+    else
+      return @newHotWindow(options)
 
   # This sets up some windows in the background with the requested
   # packages already pre-loaded into it.

    else
      @_processingQueue = false

  # Public: Removes the {AtomWindow} from the global window list.
  removeWindow: (window) ->
    @_windows.splice @_windows.indexOf(window), 1

    @_hotWindows[windowType].windowPackages ?= (windowPackages ? [])

    @_replenishHotWindows()

  unregisterAllHotWindows: ->
    for type, {loadedWindows} of @_hotWindows
      for win in loadedWindows
        win.close()
    @_replenishQueue = []
    @_hotWindows = {}

  defaultWindowOptions: ->
    devMode: @devMode
