Commit 835f97a7 authored by Shinya Maeda's avatar Shinya Maeda

Remove source.nil

parent 465e5de5
...@@ -231,10 +231,10 @@ module Ci ...@@ -231,10 +231,10 @@ module Ci
end end
def source_to_pattern(source) def source_to_pattern(source)
if %w(api external web).include?(source) || source.nil? if %w(api external web).include?(source)
source source
else else
source.pluralize source&.pluralize
end end
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