summaryrefslogtreecommitdiff
path: root/lib/chef/provider/windows_script.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-08-12 10:58:15 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-08-16 18:41:25 -0700
commit8069ed78dc8ed361f81064bca4da4b63c72559a4 (patch)
treec6cd54adfa2310eb48810a1e31fbce40dcb60c03 /lib/chef/provider/windows_script.rb
parent7fc41c51ef4fcfd68b38971336bfa9b728066a19 (diff)
downloadchef-8069ed78dc8ed361f81064bca4da4b63c72559a4.tar.gz
fixing Style/MultilineTernaryOperator cop
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/provider/windows_script.rb')
-rw-r--r--lib/chef/provider/windows_script.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/chef/provider/windows_script.rb b/lib/chef/provider/windows_script.rb
index 2de127addf..3b0202790c 100644
--- a/lib/chef/provider/windows_script.rb
+++ b/lib/chef/provider/windows_script.rb
@@ -33,8 +33,11 @@ class Chef
super( new_resource, run_context )
@script_extension = script_extension
- target_architecture = new_resource.architecture.nil? ?
- node_windows_architecture(run_context.node) : new_resource.architecture
+ target_architecture = if new_resource.architecture.nil?
+ node_windows_architecture(run_context.node)
+ else
+ new_resource.architecture
+ end
@is_wow64 = wow64_architecture_override_required?(run_context.node, target_architecture)