Remove source.nil
This commit is contained in:
parent
465e5de510
commit
835f97a7e2
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue