Skip to content

Commit fa165f3

Browse files
committed
(CONT-807) Correct Style/FormatString
1 parent 87183b5 commit fa165f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/puppetlabs_spec_helper/rake_tasks.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@
241241
# More info can be found at https://tickets.puppetlabs.com/browse/FM-6170
242242
new_version = if (build = ENV.fetch('BUILD_NUMBER', nil))
243243
if branch.eql? 'release'
244-
'%s-%s%04d-%s' % [version, 'r', build, sha] # legacy support code
244+
format('%s-%s%04d-%s', version, 'r', build, sha) # legacy support code
245245
else
246-
'%s-%04d-%s' % [version, build, sha] # legacy support code
246+
format('%s-%04d-%s', version, build, sha) # legacy support code
247247
end
248248
else
249249
"#{version}-#{sha}"

0 commit comments

Comments
 (0)