Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mhashizume committed Dec 20, 2023
1 parent 00658e0 commit 95c6395
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/puppet/application/lookup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,6 @@ def help
def main
keys = command_line.args

#unless options[:node]
# raise "No node was given via the '--node' flag for the scope of the lookup.\n#{RUN_HELP}"
#end

if (options[:sort_merged_arrays] || options[:merge_hash_arrays] || options[:prefix]) && options[:merge] != 'deep'
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 }
end
Expand Down

0 comments on commit 95c6395

Please sign in to comment.