Skip to content

Commit

Permalink
Remove unused variable and warning
Browse files Browse the repository at this point in the history
/Users/Juan/.gem/ruby/2.3.1/gems/posix-spawn-0.3.11/lib/posix/spawn/child.rb:161: warning: assigned but unused variable - boom
/Users/Juan/.gem/ruby/2.3.1/gems/posix-spawn-0.3.11/lib/posix/spawn/child.rb:200: warning: assigned but unused variable - offset
  • Loading branch information
JuanitoFatas committed Jun 28, 2016
1 parent 8b7aed3 commit ccee8be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/posix/spawn/child.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def exec!

# grab exit status
@status = waitpid(pid)
rescue Object => boom
rescue Object => _boom
[stdin, stdout, stderr].each { |fd| fd.close rescue nil }
if @status.nil?
if !@pgroup_kill
Expand Down Expand Up @@ -197,7 +197,6 @@ def exec!
def read_and_write(input, stdin, stdout, stderr, timeout=nil, max=nil)
max = nil if max && max <= 0
@out, @err = '', ''
offset = 0

# force all string and IO encodings to BINARY under 1.9 for now
if @out.respond_to?(:force_encoding) and stdin.respond_to?(:set_encoding)
Expand Down

0 comments on commit ccee8be

Please sign in to comment.