Skip to content

Commit bb2cdb7

Browse files
committed
Fix frozen string literal warning
1 parent bc69827 commit bb2cdb7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/csv.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ def generate(str=nil, **options)
14561456
encoding = options[:encoding]
14571457
# add a default empty String, if none was given
14581458
if str
1459-
str = StringIO.new(str)
1459+
str = StringIO.new(+str)
14601460
str.seek(0, IO::SEEK_END)
14611461
str.set_encoding(encoding) if encoding
14621462
else

0 commit comments

Comments
 (0)