Skip to content

Commit 9f2332c

Browse files
mzagajako1
authored andcommitted
Move Require shellwords
Move require shellwords to right before calling it because it is not otherwise used in this class.
1 parent e0633df commit 9f2332c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/debug/thread_client.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
require 'objspace'
44
require 'pp'
5-
require 'shellwords'
65

76
require_relative 'color'
87

@@ -644,6 +643,7 @@ def show_by_editor path = nil
644643
if editor = (ENV['RUBY_DEBUG_EDITOR'] || ENV['EDITOR'])
645644
puts "command: #{editor}"
646645
puts " path: #{path}"
646+
require 'shellwords'
647647
system(*Shellwords.split(editor), path)
648648
else
649649
puts "can not find editor setting: ENV['RUBY_DEBUG_EDITOR'] or ENV['EDITOR']"

0 commit comments

Comments
 (0)