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

Remove source.nil

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