Skip to content

Commit

Permalink
Minor cleanup (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinthec authored and jeremyhansonfinger committed Oct 6, 2016
1 parent ea06625 commit e10ea84
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/erb_lint/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def initialize(config = {})

def run(filename, file_content)
file_tree = begin

Parser.parse(file_content)
rescue Parser::ParseError
return [
Expand All @@ -27,7 +26,6 @@ def run(filename, file_content)
] }
]
end
return unless file_tree

linters_for_file = @linters.select { |linter| !linter_excludes_file?(linter, filename) }
linters_for_file.map do |linter|
Expand Down

0 comments on commit e10ea84

Please sign in to comment.