From a6cda21c268056e92fb19ed90e211147a3a1ebf2 Mon Sep 17 00:00:00 2001 From: Jeff Haynie Date: Sun, 5 Feb 2017 14:15:34 -0800 Subject: [PATCH] lint code to conform to project standards --- src/client/updaters/updateTags.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/client/updaters/updateTags.js b/src/client/updaters/updateTags.js index 3135458..084a1ef 100644 --- a/src/client/updaters/updateTags.js +++ b/src/client/updaters/updateTags.js @@ -18,19 +18,19 @@ export default function _updateTags (options = {}) { const newTags = [] let indexToDelete - if (tags.length > 1) { - // remove duplicates that could have been found by merging tags - // which include a mixin with metaInfo and that mixin is used - // by multiple components on the same page - const found = []; - tags = tags.map(x => { - const k = JSON.stringify(x); - if (found.indexOf(k) < 0) { - found.push(k); - return x; - } - }).filter(x => x); - } + if (tags.length > 1) { + // remove duplicates that could have been found by merging tags + // which include a mixin with metaInfo and that mixin is used + // by multiple components on the same page + const found = [] + tags = tags.map(x => { + const k = JSON.stringify(x) + if (found.indexOf(k) < 0) { + found.push(k) + return x + } + }).filter(x => x) + } if (tags && tags.length) { tags.forEach((tag) => {