Skip to content

Commit 81fd2c9

Browse files
authored
libsvm-dataset-list: suppress "literal string will be frozen in the future" warning (#221)
Before change: ```console $ ruby test/run-test.rb -t LIBSVMDatasetListTest 2>&1 | grep red-datasets /Users/zzz/src/github.com/red-data-tools/red-datasets/lib/datasets/libsvm-dataset-list.rb:136: warning: literal string will be frozen in the future (repeated 7 times) ``` After change: ```console $ ruby test/run-test.rb -t LIBSVMDatasetListTest 2>&1 | grep red-datasets ```
1 parent 23ef2da commit 81fd2c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/datasets/libsvm-dataset-list.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def tag_start(name, attributes)
110110
@row = []
111111
when "td"
112112
@in_td = true
113-
@row << {:text => ""}
113+
@row << {:text => +""}
114114
when "a"
115115
@row.last[:href] = attributes["href"] if @in_td
116116
end

0 commit comments

Comments
 (0)