use squre bracket

This commit is contained in:
Shinya Maeda 2017-06-07 22:59:06 +09:00
parent 451b684d84
commit 32bfa48ad0

View file

@ -229,7 +229,7 @@ module Ci
end
def source_to_pattern(source)
if %w(api external web).include?(source)
if %w[api external web].include?(source)
source
else
source&.pluralize