Skip to content

Commit b92d72a

Browse files
committed
Lint/ElseLayout
1 parent 28e0f94 commit b92d72a

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -585,11 +585,6 @@ Layout/TrailingWhitespace:
585585
Lint/ConstantDefinitionInBlock:
586586
Enabled: false
587587

588-
# This cop supports safe auto-correction (--auto-correct).
589-
Lint/ElseLayout:
590-
Exclude:
591-
- 'lib/puppet/resource.rb'
592-
593588
# Configuration parameters: AllowComments.
594589
Lint/EmptyWhen:
595590
Exclude:

lib/puppet/resource.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ def self.extract_type_and_title(argtype, argtitle)
582582
argtype =~ /^([^\[\]]+)\[(.+)\]$/m then [ $1, $2 ]
583583
elsif argtitle then [ argtype, argtitle ]
584584
elsif argtype.is_a?(Puppet::Type) then [ argtype.class.name, argtype.title ]
585-
else raise ArgumentError, _("No title provided and %{type} is not a valid resource reference") % { type: argtype.inspect }
585+
else raise ArgumentError, _("No title provided and %{type} is not a valid resource reference") % { type: argtype.inspect } # rubocop:disable Lint/ElseLayout
586586
end
587587
end
588588
private_class_method :extract_type_and_title

0 commit comments

Comments
 (0)