2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-08 15:02:25 +03:00

refactor: prefer destruct syntax

Co-Authored-By: pimlie <pimlie@hotmail.com>
This commit is contained in:
Alexander Lichter
2019-03-08 17:02:09 +01:00
parent 01edc8c242
commit 6f1b080654
+1 -1
View File
@@ -15,7 +15,7 @@ export default function escape(info, { tagIDKeyName }, escapeSequences = []) {
continue
}
let disableKey = disableOptionKeys[0]
let [ disableKey ] = disableOptionKeys
if (info[disableKey] && info[disableKey].includes(key)) {
// this info[key] doesnt need to escaped if the option is listed in __dangerouslyDisableSanitizers
escaped[key] = value