Skip to content

Commit

Permalink
Fixed rubocop warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
valeronm authored and rosa committed May 22, 2024
1 parent a22c765 commit fe7f9a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/console1984/ext/irb/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ def evaluate(line_or_statement, ...)
# irb < 1.13 passes String as parameter
# irb >= 1.13 passes IRB::Statement instead and method #code contains the actual code
code = if defined?(IRB::Statement) && line_or_statement.kind_of?(IRB::Statement)
line_or_statement.code
else
line_or_statement
end
line_or_statement.code
else
line_or_statement
end

Console1984.command_executor.execute(Array(code)) do
super
Expand Down

0 comments on commit fe7f9a5

Please sign in to comment.