Remove unneeded flatten
This commit is contained in:
Родитель
9dceb6e140
Коммит
35d3c219ce
|
@ -109,7 +109,7 @@ module SecureHeaders
|
|||
DIRECTIVES_2_0 + DIRECTIVES_DRAFT
|
||||
).freeze
|
||||
|
||||
ALL_DIRECTIVES = [DIRECTIVES_1_0 + DIRECTIVES_2_0 + DIRECTIVES_3_0 + DIRECTIVES_DRAFT].flatten.uniq.sort
|
||||
ALL_DIRECTIVES = (DIRECTIVES_1_0 + DIRECTIVES_2_0 + DIRECTIVES_3_0 + DIRECTIVES_DRAFT).uniq.sort
|
||||
|
||||
# Think of default-src and report-uri as the beginning and end respectively,
|
||||
# everything else is in between.
|
||||
|
|
Загрузка…
Ссылка в новой задаче