Skip to content

Commit 59471ed

Browse files
committed
Lint/LiteralInInterpolation (bug)
It's not necessary to interpolate a literal, in this case a symbol, in a string.
1 parent e91d5a2 commit 59471ed

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -628,12 +628,6 @@ Lint/InheritException:
628628
- 'lib/puppet/util/logging.rb'
629629
- 'lib/puppet/util/retry_action.rb'
630630

631-
# This cop supports safe auto-correction (--auto-correct).
632-
Lint/LiteralInInterpolation:
633-
Exclude:
634-
- 'lib/puppet/provider/package/yum.rb'
635-
- 'lib/puppet/type/component.rb'
636-
637631
Lint/MissingSuper:
638632
Enabled: false
639633

lib/puppet/provider/package/yum.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def install
256256
operation = update_command
257257
self.debug "Ensuring latest, so using #{operation}"
258258
else
259-
self.debug "Ensuring latest, but package is absent, so using #{:install}"
259+
self.debug "Ensuring latest, but package is absent, so using install"
260260
operation = :install
261261
end
262262
should = nil

lib/puppet/type/component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def refresh
6464
catalog.adjacent(self).each do |child|
6565
if child.respond_to?(:refresh)
6666
child.refresh
67-
child.log "triggering #{:refresh}"
67+
child.log "triggering refresh"
6868
end
6969
end
7070
end

0 commit comments

Comments
 (0)