mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-23 23:20:33 +03:00
lint code to conform to project standards
This commit is contained in:
@@ -18,19 +18,19 @@ export default function _updateTags (options = {}) {
|
|||||||
const newTags = []
|
const newTags = []
|
||||||
let indexToDelete
|
let indexToDelete
|
||||||
|
|
||||||
if (tags.length > 1) {
|
if (tags.length > 1) {
|
||||||
// remove duplicates that could have been found by merging tags
|
// remove duplicates that could have been found by merging tags
|
||||||
// which include a mixin with metaInfo and that mixin is used
|
// which include a mixin with metaInfo and that mixin is used
|
||||||
// by multiple components on the same page
|
// by multiple components on the same page
|
||||||
const found = [];
|
const found = []
|
||||||
tags = tags.map(x => {
|
tags = tags.map(x => {
|
||||||
const k = JSON.stringify(x);
|
const k = JSON.stringify(x)
|
||||||
if (found.indexOf(k) < 0) {
|
if (found.indexOf(k) < 0) {
|
||||||
found.push(k);
|
found.push(k)
|
||||||
return x;
|
return x
|
||||||
}
|
}
|
||||||
}).filter(x => x);
|
}).filter(x => x)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tags && tags.length) {
|
if (tags && tags.length) {
|
||||||
tags.forEach((tag) => {
|
tags.forEach((tag) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user