summaryrefslogtreecommitdiff
path: root/lib/chef/resource/alternatives.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/alternatives.rb')
-rw-r--r--lib/chef/resource/alternatives.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/alternatives.rb b/lib/chef/resource/alternatives.rb
index e12b2dab04..e5e9461c71 100644
--- a/lib/chef/resource/alternatives.rb
+++ b/lib/chef/resource/alternatives.rb
@@ -126,7 +126,7 @@ class Chef
def current_path
# https://rubular.com/r/ylsuvzUtquRPqc
match = shell_out(alternatives_cmd, "--display", new_resource.link_name).stdout.match(/link currently points to (.*)/)
- match.nil? ? nil : match[1]
+ match[1]
end
#