Rubocop: Style/CaseIndentation
- Indent when as deep as case
This commit is contained in:
parent
2c9a349f9a
commit
f6fd9014ba
|
@ -13,7 +13,8 @@ module Jekyll
|
||||||
def update_deprecated_types(set)
|
def update_deprecated_types(set)
|
||||||
return set unless set.key?('scope') && set['scope'].key?('type')
|
return set unless set.key?('scope') && set['scope'].key?('type')
|
||||||
|
|
||||||
set['scope']['type'] = case set['scope']['type']
|
set['scope']['type'] =
|
||||||
|
case set['scope']['type']
|
||||||
when 'page'
|
when 'page'
|
||||||
Deprecator.defaults_deprecate_type('page', 'pages')
|
Deprecator.defaults_deprecate_type('page', 'pages')
|
||||||
'pages'
|
'pages'
|
||||||
|
|
|
@ -164,7 +164,8 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
# Replace each character sequence with a hyphen
|
# Replace each character sequence with a hyphen
|
||||||
re = case mode
|
re =
|
||||||
|
case mode
|
||||||
when 'raw'
|
when 'raw'
|
||||||
SLUGIFY_RAW_REGEXP
|
SLUGIFY_RAW_REGEXP
|
||||||
when 'default'
|
when 'default'
|
||||||
|
|
Loading…
Reference in New Issue