Remove "use of nil in void context" warnings.
This commit is contained in:
parent
e01491197c
commit
27a670ea27
|
@ -740,6 +740,7 @@ HTML
|
||||||
%p= s
|
%p= s
|
||||||
- end; nil)
|
- end; nil)
|
||||||
HAML
|
HAML
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_if_without_content_and_else
|
def test_if_without_content_and_else
|
||||||
|
|
|
@ -166,7 +166,7 @@ HAML
|
||||||
HTML
|
HTML
|
||||||
- (foo = capture_haml(13) do |a|
|
- (foo = capture_haml(13) do |a|
|
||||||
%p= a
|
%p= a
|
||||||
- end; nil)
|
- end)
|
||||||
= foo.inspect
|
= foo.inspect
|
||||||
HAML
|
HAML
|
||||||
end
|
end
|
||||||
|
|
|
@ -197,7 +197,7 @@ HTML
|
||||||
bar
|
bar
|
||||||
= "foo".gsub(/./) do |s|
|
= "foo".gsub(/./) do |s|
|
||||||
- "flup"
|
- "flup"
|
||||||
- end; nil)
|
- end)
|
||||||
baz
|
baz
|
||||||
HAML
|
HAML
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue