Skip to content

Commit

Permalink
Ignore nil returned from to_iruby
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkn committed Jun 20, 2021
1 parent 079f86b commit a4d8e11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/iruby/display.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ def display(obj, options = {})
case mime
when nil # to_iruby
case result
when nil
# do nothing
next
when Array
mime, result = result
else
Expand Down

0 comments on commit a4d8e11

Please sign in to comment.