Call split in channels_for_project only once

This commit is contained in:
Toben Schmidt
2017-02-15 20:08:37 +01:00
committed by GitHub
parent e10b351b88
commit bba71e1d06

View File

@@ -205,7 +205,8 @@ private
# Channel name '-' or empty '' is reserved for NOT notifying
return [] if val.to_s == ''
return [] if val.to_s == '-'
val.split(",")
return val.split(",") if val.is_a? String
val
end
def detail_to_field(detail)