Skip to content

Commit 1d73ba2

Browse files
committed
Remove unnecessary line
lspace is always nil here, as it is initialized to nil and the only place it is set to non-nil is in the unless ch == '=' block, when is never taken when taking the case ch when '=' block.
1 parent ae87f80 commit 1d73ba2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/erubi.rb

-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ def initialize(input, properties={})
137137
case ch
138138
when '='
139139
rspace = nil if tailch && !tailch.empty?
140-
add_text(lspace) if lspace
141140
add_expression(indicator, code)
142141
add_text(rspace) if rspace
143142
when '#'

0 commit comments

Comments
 (0)