diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-07-26 13:23:27 +0200 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-07-26 13:23:27 +0200 |
commit | 7ce0a61a993f36f30692f93c477f671f82dbef51 (patch) | |
tree | f416f0b2e9d3c3f2b19c4970e6b5ba8f5a8fcfce /spec | |
parent | 895e1b3ed1de5f94414b0e042b0053fab794a1f6 (diff) | |
download | gitlab-ce-7ce0a61a993f36f30692f93c477f671f82dbef51.tar.gz |
use `.zero?` instead of `== 0`
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/health_checks/fs_shards_check_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/health_checks/fs_shards_check_spec.rb b/spec/lib/gitlab/health_checks/fs_shards_check_spec.rb index 0a8dfa3bbdd..8abc4320c59 100644 --- a/spec/lib/gitlab/health_checks/fs_shards_check_spec.rb +++ b/spec/lib/gitlab/health_checks/fs_shards_check_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' describe Gitlab::HealthChecks::FsShardsCheck do def command_exists?(command) _, status = Gitlab::Popen.popen(%W{ #{command} 1 echo }) - status == 0 + status.zero? rescue Errno::ENOENT false end |