mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Remove "use of nil in void context" warnings.
This commit is contained in:
parent
e01491197c
commit
27a670ea27
3 changed files with 3 additions and 2 deletions
|
@ -740,6 +740,7 @@ HTML
|
|||
%p= s
|
||||
- end; nil)
|
||||
HAML
|
||||
end
|
||||
end
|
||||
|
||||
def test_if_without_content_and_else
|
||||
|
|
|
@ -166,7 +166,7 @@ HAML
|
|||
HTML
|
||||
- (foo = capture_haml(13) do |a|
|
||||
%p= a
|
||||
- end; nil)
|
||||
- end)
|
||||
= foo.inspect
|
||||
HAML
|
||||
end
|
||||
|
|
|
@ -197,7 +197,7 @@ HTML
|
|||
bar
|
||||
= "foo".gsub(/./) do |s|
|
||||
- "flup"
|
||||
- end; nil)
|
||||
- end)
|
||||
baz
|
||||
HAML
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue