Skip to content

Commit 3ac6814

Browse files
committed
Code cleanup: couple RM's warnings fixed
1 parent a655fb4 commit 3ac6814

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ruby-debug-ide/ide_processor.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@ def process_commands
2828
s.interface = @interface
2929
end
3030
event_cmds = Command.commands.map{|cmd| cmd.new(state, @printer) }
31-
while !state.proceed? do
31+
until state.proceed? do
3232
input = @interface.command_queue.pop
3333
catch(:debug_error) do
3434
splitter[input].each do |input|
3535
# escape % since print_debug might use printf
3636
@printer.print_debug "Processing in context: #{input.gsub('%', '%%')}"
37-
if cmd = event_cmds.find { |c| c.match(input) }
37+
if (cmd = event_cmds.find { |c| c.match(input) })
3838
if context.dead? && cmd.class.need_context
3939
@printer.print_msg "Command is unavailable\n"
4040
else
4141
cmd.execute
4242
end
4343
else
4444
@printer.print_msg "Unknown command: #{input}"
45-
end
45+
end
4646
end
4747
end
4848
state.restore_context

0 commit comments

Comments
 (0)