Skip to content

Commit fec1244

Browse files
committed
(CONT-811) Correct Style/UnpackFirst
1 parent 96e4122 commit fec1244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet-lint.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def file=(path)
9595

9696
# Check if the input is an SE Linux policy package file (which also use
9797
# the .pp extension), which all have the first 4 bytes 0xf97cff8f.
98-
@code = '' if @code[0..3].unpack('V').first == 0xf97cff8f
98+
@code = '' if @code[0..3].unpack1('V') == 0xf97cff8f
9999
end
100100

101101
# Internal: Retrieve the format string to be used when writing problems to

0 commit comments

Comments
 (0)