   if dir is parent
     findFileResults[filename] = null
     return null
-  findFile name, parent
+  if upwards
+    findFile name, parent
+  else
+    return null
 
 ###
 Tries to find a configuration file in either project directory

    @loadingView.hide()
    return
  # console.log 'Beautify time!'
  text = undefined
  editor = atom.workspace.getActiveEditor()
  isSelection = !!editor.getSelectedText()
  softTabs = editor.softTabs
  tabLength = editor.getTabLength()

    indent_char: (if softTabs then " " else "\t")
    indent_with_tabs: not softTabs
  configOptions = getConfigOptionsFromSettings(languages)

  # Get editor path and configurations for paths
  editedFilePath = editor.getPath()

  # Get configuration in User's Home directory
  userHome = getUserHome()
  # FAKEFILENAME forces `path` to treat as file path and it's parent directory
  # is the userHome. See implementation of findConfig
  # and how path.dirname(DIRECTORY) returns the parent directory of DIRECTORY
  homeOptions = getConfig(path.join(userHome,"FAKEFILENAME"), false)

  # TODO: See issue #68. EditorConfig options
  editorConfigOptions = {};

  # Get all options in configuration files from this directory upwards to root
  projectOptions = []
  p = path.dirname(editedFilePath)
  # Check if p is root (top directory)
  while p isnt "/"
    # Get config for p
    pf = path.join(p, "FAKEFILENAME")
    pc = getConfig(pf, false)
    # Add config for p to project's config options
    projectOptions.push(pc)
    # console.log p, pc
    # Move upwards
    p = path.resolve(p,"../")

  # Combine all options together
  allOptions = [
    editorOptions
    configOptions
    homeOptions
    editorConfigOptions
  ]
  allOptions = allOptions.concat(projectOptions)

  # Get current editor's text
  text = undefined
  if not forceEntireFile and isSelection
    text = editor.getSelectedText()
  else
    text = editor.getText()
  oldText = text
  # Get Grammar
  grammarName = editor.getGrammar().name
  # Finally, beautify!
  try
