Skip to content

Commit

Permalink
Change #length check to conventional #empty?
Browse files Browse the repository at this point in the history
Change-Id: Ie58ecd9c2e9bffa5d892b342ad196e6102a9e2fe
Reviewed-on: http://gerrit.causes.com/44911
Tested-by: jenkins <[email protected]>
Reviewed-by: Shane da Silva <[email protected]>
  • Loading branch information
sds committed Dec 1, 2014
1 parent efada78 commit 2f6e435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scss_lint/linter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def name
# @param node_or_line_or_location [Sass::Script::Tree::Node, Fixnum, SCSSLint::Location]
# @param message [String]
def add_lint(node_or_line_or_location, message)
return unless @disable_stack.length == 0
return unless @disable_stack.empty?

@lints << Lint.new(self,
engine.filename,
Expand Down

0 comments on commit 2f6e435

Please sign in to comment.