Merge pull request #4583 from reitermarkus/unneeded-rubocop-comment

Remove unneeded RuboCop comment.
This commit is contained in:
Markus Reiter 2018-08-01 04:46:22 +02:00 committed by GitHub
commit 96eb404af9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,11 +26,8 @@ module Utils
ignore_interrupts(:quietly) do # the child will receive the interrupt and marshal it back
begin
socket = server.accept_nonblock
# rubocop:disable Lint/ShadowedException
# FIXME: https://github.com/bbatsov/rubocop/issues/4843
rescue Errno::EAGAIN, Errno::EWOULDBLOCK, Errno::ECONNABORTED, Errno::EPROTO, Errno::EINTR
retry unless Process.waitpid(pid, Process::WNOHANG)
# rubocop:enable Lint/ShadowedException
else
socket.send_io(write)
socket.close