Skip to content

Commit afb9bb2

Browse files
committed
Merge pull request #30 from os97673/minor-cleanup
Minor code cleanup to make RubyMine happy.
2 parents 245adb1 + 953c3aa commit afb9bb2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

bin/rdebug-ide

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ end
8282
# save script name
8383
Debugger::PROG_SCRIPT = ARGV.shift
8484

85-
if (options.dispatcher_port != -1)
85+
if options.dispatcher_port != -1
8686
ENV['IDE_PROCESS_DISPATCHER'] = options.dispatcher_port.to_s
8787
if RUBY_VERSION < "1.9"
8888
$: << File.expand_path(File.dirname(__FILE__) + "/../lib/")

lib/ruby-debug-ide.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def start_control(host, port)
112112
while (session = server.accept)
113113
$stderr.puts "Connected from #{session.peeraddr[2]}" if Debugger.cli_debug
114114
dispatcher = ENV['IDE_PROCESS_DISPATCHER']
115-
if (dispatcher)
115+
if dispatcher
116116
ENV['IDE_PROCESS_DISPATCHER'] = "#{session.peeraddr[2]}:#{dispatcher}" unless dispatcher.include?(":")
117117
ENV['DEBUGGER_HOST'] = host
118118
end

lib/ruby-debug-ide/multiprocess/pre_child.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module MultiProcess
33
class << self
44
def pre_child
55

6-
require "socket"
7-
require "ostruct"
6+
require 'socket'
7+
require 'ostruct'
88

99
host = ENV['DEBUGGER_HOST']
1010
port = find_free_port(host)
@@ -42,7 +42,7 @@ def pre_child
4242

4343
def start_debugger(options)
4444
if Debugger.started?
45-
#we're in forked child, only need to restart control thread
45+
# we're in forked child, only need to restart control thread
4646
Debugger.breakpoints.clear
4747
Debugger.control_thread = nil
4848
Debugger.start_control(options.host, options.port)

0 commit comments

Comments
 (0)