Skip to content

Commit

Permalink
remove unnecessary ternary operation
Browse files Browse the repository at this point in the history
  • Loading branch information
ceclinux committed Nov 28, 2017
1 parent afb4904 commit ffe6fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/erubi.rb
Expand Up @@ -123,7 +123,7 @@ def initialize(input, properties={})
end
end

is_bol = rspace ? true : false
is_bol = rspace
add_text(text) if text && !text.empty?
case ch
when '='
Expand Down

0 comments on commit ffe6fe4

Please sign in to comment.