Skip to content

Commit ab36824

Browse files
committed
Remove unused code
Some conditional code was commented out in 2015 with b1fde14. The Rubocop Layout/LeadingCommentSpace cop flagged it as an issue but, because this hasn't been used for over eight years, this commit removes the code altogether.
1 parent 14c1314 commit ab36824

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/puppet/application/lookup.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,6 @@ def help
272272
def main
273273
keys = command_line.args
274274

275-
#unless options[:node]
276-
# raise "No node was given via the '--node' flag for the scope of the lookup.\n#{RUN_HELP}"
277-
#end
278-
279275
if (options[:sort_merged_arrays] || options[:merge_hash_arrays] || options[:prefix]) && options[:merge] != 'deep'
280276
raise _("The options %{deep_merge_opts} are only available with '--merge deep'\n%{run_help}") % { deep_merge_opts: DEEP_MERGE_OPTIONS, run_help: RUN_HELP }
281277
end

0 commit comments

Comments
 (0)