Skip to content

Commit c9522b4

Browse files
committed
remove parentheses
1 parent fe7e5f6 commit c9522b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ruby-debug-ide/xml_printer.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ def print_string(string)
164164
end
165165

166166
def exec_with_allocation_control(value, memory_limit, time_limit, exec_method, overflow_message_type)
167-
return value.send exec_method if(RUBY_VERSION < '2.0')
167+
return value.send exec_method if RUBY_VERSION < '2.0'
168168

169169
check_memory_limit = !defined?(JRUBY_VERSION) && ENV['DEBUGGER_MEMORY_LIMIT'].to_i > 0
170170
curr_thread = Thread.current
171171

172172
result = nil
173173
inspect_thread = DebugThread.start do
174-
start_alloc_size = ObjectSpace.memsize_of_all if (check_memory_limit)
174+
start_alloc_size = ObjectSpace.memsize_of_all if check_memory_limit
175175
start_time = Time.now.to_f
176176

177177
trace_point = TracePoint.new(:c_call, :call) do | |
@@ -186,7 +186,7 @@ def exec_with_allocation_control(value, memory_limit, time_limit, exec_method, o
186186

187187
if check_memory_limit
188188
curr_alloc_size = ObjectSpace.memsize_of_all
189-
start_alloc_size = curr_alloc_size if (curr_alloc_size < start_alloc_size)
189+
start_alloc_size = curr_alloc_size if curr_alloc_size < start_alloc_size
190190

191191
if curr_alloc_size - start_alloc_size > 1e6 * memory_limit
192192
curr_thread.raise MemoryLimitError.new("Out of memory: evaluation of #{exec_method} took more than #{memory_limit}mb.", caller.to_a, trace_point)

0 commit comments

Comments
 (0)