diff options
| author | Tim Smith <tsmith84@gmail.com> | 2021-12-26 20:32:49 -0800 |
|---|---|---|
| committer | Tim Smith <tsmith84@gmail.com> | 2021-12-26 20:32:49 -0800 |
| commit | 0cefcaa319b0d2f07241b78bf7d6f06de03d07ef (patch) | |
| tree | 5c1061b328d1769e8ad1c995db78a5521736c33e /knife | |
| parent | 50a0001bae754c66feb69c84b64cb305a03a34d2 (diff) | |
| download | chef-Performance_StringIdentifierArgument.tar.gz | |
Resolve Performance/StringIdentifierArgument warningsPerformance_StringIdentifierArgument
Inernally it's all a symbol so skip the conversion
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'knife')
| -rw-r--r-- | knife/spec/support/platform_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/knife/spec/support/platform_helpers.rb b/knife/spec/support/platform_helpers.rb index a3fb95e069..4d3acbcb33 100644 --- a/knife/spec/support/platform_helpers.rb +++ b/knife/spec/support/platform_helpers.rb @@ -168,7 +168,7 @@ def wpar? end def supports_cloexec? - Fcntl.const_defined?("F_SETFD") && Fcntl.const_defined?("FD_CLOEXEC") + Fcntl.const_defined?(:F_SETFD) && Fcntl.const_defined?(:FD_CLOEXEC) end def selinux_enabled? |
