Skip to content

Commit d181f5f

Browse files
committed
Remove commented out raise
One of the conditions for raising an argument error was commented out in 2014 as part of 2f8428c. The Rubocop Layout/LeadingCommentSpace cop flagged this as an issue but, instead of resolving the cop, this commit removes the comment entirely.
1 parent 758374a commit d181f5f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/puppet/syntax_checkers/json.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ def check(text, syntax, acceptor, source_pos)
1919
raise ArgumentError.new(_("Json syntax checker: the syntax identifier must be a String, e.g. json, data+json")) unless syntax.is_a?(String)
2020
raise ArgumentError.new(_("Json syntax checker: invalid Acceptor, got: '%{klass}'.") % { klass: acceptor.class.name }) unless acceptor.is_a?(Puppet::Pops::Validation::Acceptor)
2121

22-
#raise ArgumentError.new("Json syntax checker: location_info must be a Hash") unless location_info.is_a?(Hash)
23-
2422
begin
2523
Puppet::Util::Json.load(text)
2624
rescue => e

0 commit comments

Comments
 (0)