 
     @subscriptions.add atom.config.observe 'linter-pylama.ignoreErrorsAndWarnings',
     (ignoreErrorsAndWarnings) =>
-      if ignoreErrorsAndWarnings
-        ignoreErrorsAndWarnings = ignoreErrorsAndWarnings.replace /\s+/g, ''
+      ignoreErrorsAndWarnings = ignoreErrorsAndWarnings.replace /\s+/g, '' if ignoreErrorsAndWarnings
       @ignoreErrorsAndWarnings_ = ignoreErrorsAndWarnings
 
     @subscriptions.add atom.config.observe 'linter-pylama.skipFiles',



  lint: (textEditor) =>
    if not @pylamaPath
      return []
    if @lintOnFly_
      return @lintOnFly textEditor
    @lintOnSave textEditor





  makeLintInfo: (fileName, originFileName) =>
    originFileName = fileName if not originFileName
    filePath = path.normalize path.dirname(originFileName)
    projectPath = atom.project.relativizePath(originFileName)[0]
    env = @initEnv filePath, projectPath
