mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
if expression ends in ; then do not gist the result
This commit is contained in:
parent
922657e466
commit
f40115f323
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ class Pry
|
|||
corrected_index = index + normalized_range.first
|
||||
if code && code != ""
|
||||
content << code
|
||||
content << "#{comment_expression_result_for_gist(_pry_.output_array[corrected_index].pretty_inspect)}"
|
||||
content << "#{comment_expression_result_for_gist(_pry_.output_array[corrected_index].pretty_inspect)}" if code !~ /;\Z/
|
||||
end
|
||||
end
|
||||
elsif opts.present?(:doc)
|
||||
|
|
Loading…
Reference in a new issue