Skip to content

Commit f116917

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

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
@@ -652,12 +652,6 @@ Lint/InheritException:
652652
- 'lib/puppet/util/logging.rb'
653653
- 'lib/puppet/util/retry_action.rb'
654654

655-
# This cop supports safe auto-correction (--auto-correct).
656-
Lint/LiteralInInterpolation:
657-
Exclude:
658-
- 'lib/puppet/provider/package/yum.rb'
659-
- 'lib/puppet/type/component.rb'
660-
661655
Lint/MissingSuper:
662656
Enabled: false
663657

lib/puppet/provider/package/yum.rb

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

lib/puppet/type/component.rb

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

0 commit comments

Comments
 (0)