Skip to content

Commit 73af74e

Browse files
committed
rubocop: autofix
1 parent 5b9b120 commit 73af74e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/puppet/modulebuilder/builder.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def validate_path_encoding!(path)
202202
return unless /[^\x00-\x7F]/.match?(path)
203203

204204
raise ArgumentError, format("'%<path>s' can only include ASCII characters in its path or " \
205-
'filename in order to be compatible with a wide range of hosts.', path: path)
205+
'filename in order to be compatible with a wide range of hosts.', path:)
206206
end
207207

208208
# Creates a gzip compressed tarball of the build directory.
@@ -235,7 +235,7 @@ def build_package
235235
entry_meta[:mode] = orig_mode | min_mode
236236

237237
if entry_meta[:mode] != orig_mode
238-
logger.debug(format('Updated permissions of packaged \'%<entry>s\' to %<new_mode>s', entry: entry,
238+
logger.debug(format('Updated permissions of packaged \'%<entry>s\' to %<new_mode>s', entry:,
239239
new_mode: (entry_meta[:mode] & 0o7777).to_s(8)))
240240
end
241241

@@ -355,7 +355,7 @@ def release_name
355355
#
356356
# @return [nil]
357357
def validate_ustar_path!(path)
358-
raise ArgumentError, format("The path '%<path>s' is longer than 256 bytes.", path: path) if path.bytesize > 256
358+
raise ArgumentError, format("The path '%<path>s' is longer than 256 bytes.", path:) if path.bytesize > 256
359359

360360
if path.bytesize <= 100
361361
prefix = ''
@@ -380,7 +380,7 @@ def validate_ustar_path!(path)
380380
raise ArgumentError, \
381381
format("'%<path>s' could not be split at a directory separator into two " \
382382
'parts, the first having a maximum length of 155 bytes and the ' \
383-
'second having a maximum length of 100 bytes.', path: path)
383+
'second having a maximum length of 100 bytes.', path:)
384384
end
385385

386386
private

0 commit comments

Comments
 (0)