summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-03-14 11:13:02 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-03-14 11:13:02 -0700
commitab827c15c14429d55064e1978df4c17e20e123ad (patch)
tree84083d8470bac818123151eb38d66fccfe5fbb3a
parentd4579addae1dafa6b9e39b286995b97dac450aa2 (diff)
downloadchef-ab827c15c14429d55064e1978df4c17e20e123ad.tar.gz
fix `or return` to `return unless`
-rw-r--r--lib/chef/application/client.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb
index 89c6927a4d..500aa8ac59 100644
--- a/lib/chef/application/client.rb
+++ b/lib/chef/application/client.rb
@@ -480,7 +480,7 @@ class Chef::Application::Client < Chef::Application
end
def client_sleep(sec)
- IO.select([ SELF_PIPE[0] ], nil, nil, sec) || (return)
+ return unless IO.select([ SELF_PIPE[0] ], nil, nil, sec)
@signal = SELF_PIPE[0].getc.chr
end