     buffer = editor.getBuffer()
     bufferSavedSubscription = buffer.onDidSave =>
       buffer.transact =>
-        if atom.config.get('rubocop-auto-correct.autoRun')
-          @run(editor)
+        @run(editor) if atom.config.get('rubocop-auto-correct.autoRun')
 
     editorDestroyedSubscription = editor.onDidDestroy ->
       bufferSavedSubscription.dispose()


    if (data.stderr)
      atom.notifications.addError(data.stderr) if notification
    else if (data.summary.offense_count == 0)
      if !onlyFixesNotification
        atom.notifications.addSuccess("No offenses found") if notification
    else
      if !onlyFixesNotification
        atom.notifications.addWarning(
          "#{data.summary.offense_count} offenses found!"
        ) if notification
      for file in data.files
        for offense in file.offenses
          if offense.corrected
            atom.notifications.addSuccess(
              "Line: #{offense.location.line},
              Col:#{offense.location.column} (FIXED)",
              { detail: "#{offense.message}" }
            ) if notification
          else
            if !onlyFixesNotification
              atom.notifications.addWarning(
                "Line: #{offense.location.line},
                Col:#{offense.location.column}",
                { detail: "#{offense.message}" }
              ) if notification

  makeTempFile: (filename) ->
    directory = temp.mkdirSync()

      .concat(@rubocopConfigPath(buffer.getPath()))

    which command, (err) =>
      return @rubocopNotFoundError() if (err)
      rubocop = spawnSync(command, args, { encoding: 'utf-8', timeout: 5000 })
      return @rubocopOutput({"stderr": "#{rubocop.stderr}"}) if (rubocop.stderr)
      buffer.setTextViaDiff(fs.readFileSync(tempFilePath, 'utf-8'))
      @rubocopOutput(JSON.parse(rubocop.stdout))

  autoCorrectFile: (editor)  ->
    filePath = editor.getPath()
