Skip to content

Commit 91ff6d7

Browse files
viuginick1valich
authored andcommitted
check if block given before yield in xml's print_element
1 parent d171ee2 commit 91ff6d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby-debug-ide/xml_printer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def print_load_result(file, exception = nil)
442442
def print_element(name)
443443
print("<#{name}>")
444444
begin
445-
yield
445+
yield if block_given?
446446
ensure
447447
print("</#{name}>")
448448
end

0 commit comments

Comments
 (0)