Commit 7457d076 authored by Filip Krakowski's avatar Filip Krakowski Committed by Shinya Maeda

Check if source is nil

parent 1dd054e1
...@@ -229,7 +229,7 @@ module Ci ...@@ -229,7 +229,7 @@ module Ci
end end
def source_to_pattern(source) def source_to_pattern(source)
return source if %w(api external web).include? source return source if %w(api external web).include?(source) || source.nil?
return source.pluralize return source.pluralize
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment