B #3972: Linting, addtional checks

This commit is contained in:
Ruben S. Montero committed 2019-11-22 10:21:57 +01:00
1 parent 7ae7635644
commit 3842c6fff1
1 file changed
+4 -5
+4 -5
View File
@@ -113,15 +113,14 @@ def normalize_list(list_format)
list = []
list_format.split(',').each do |range|
arr = range.split('-')
if arr.length > 1
for entry in arr[0]..arr[1] do
list << entry
end
(arr[0].to_i..arr[1].to_i).each {|entry| list << entry }
else
list.concat(arr)
list. << arr[0].to_i
end
end
list
list.uniq
end
# ------------------------------------------------------------------------------