Skip to content

Commit 33c5d19

Browse files
Fix "warning: assigned but unused variable - junk"
1 parent 57fe753 commit 33c5d19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/script_exit_status_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ def thor_command(command)
1212
{:out => w, :err => [:child, :out]})
1313
w.close
1414

15-
junk, exit_status= Process.wait2(pid)
16-
junk= r.read
15+
_, exit_status= Process.wait2(pid)
16+
r.read
1717
r.close
1818

1919
exit_status.exitstatus

0 commit comments

Comments
 (0)