Skip to content

Commit

Permalink
Remove unused error variables to reduce warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwildig committed May 6, 2012
1 parent de9c7c3 commit 42c7110
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/haml/filters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def resolve_lazy_requires
begin
@required = @lazy_requires[-1]
require @required
rescue LoadError => e
rescue LoadError
classname = self.name.match(/\w+$/)[0]

if @lazy_requires.size == 1
Expand Down
2 changes: 1 addition & 1 deletion lib/haml/html/erb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def h(text)
# @return [Boolean]
def valid_ruby?(code)
RubyParser.new.parse(code)
rescue Racc::ParseError => e
rescue Racc::ParseError
false
end

Expand Down

0 comments on commit 42c7110

Please sign in to comment.