Skip to content

Commit

Permalink
read may return nil
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nurse committed Nov 20, 2015
1 parent ba772af commit 9ddeb95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lib/test/unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def quit_workers
def deal(io, type, result, rep, shutting_down = false)
worker = @workers_hash[io]
cmd = worker.read
cmd.sub!(/\A\.+/, '')
cmd.sub!(/\A\.+/, '') if cmd # read may return nil
case cmd
when ''
# just only dots, ignore
Expand Down

0 comments on commit 9ddeb95

Please sign in to comment.