Skip to content

Commit 56f5946

Browse files
authored
Merge pull request #123 from FrancescoK/main
Fix frozen string literal warning in magic detection
2 parents 170458c + 8140e36 commit 56f5946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/marcel/magic.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def self.magic_match(io, method)
119119

120120
io.binmode if io.respond_to?(:binmode)
121121
io.set_encoding(Encoding::BINARY) if io.respond_to?(:set_encoding)
122-
buffer = "".encode(Encoding::BINARY)
122+
buffer = (+"").encode(Encoding::BINARY)
123123

124124
MAGIC.send(method) { |type, matches| magic_match_io(io, matches, buffer) }
125125
end

0 commit comments

Comments
 (0)