mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-16 11:37:37 +01:00
lint: fix missing comma
This commit is contained in:
@@ -78,7 +78,7 @@ module.exports = function (utils, Benchpress, relative_path) {
|
|||||||
|
|
||||||
function buildLinkTag(tag) {
|
function buildLinkTag(tag) {
|
||||||
const attributes = [
|
const attributes = [
|
||||||
'link', 'rel', 'as', 'type', 'href', 'hreflang', 'sizes', 'title', 'crossorigin'
|
'link', 'rel', 'as', 'type', 'href', 'hreflang', 'sizes', 'title', 'crossorigin',
|
||||||
];
|
];
|
||||||
const [link, rel, as, type, href, hreflang, sizes, title, crossorigin] = attributes.map(attr => (tag[attr] ? `${attr}="${tag[attr]}" ` : ''));
|
const [link, rel, as, type, href, hreflang, sizes, title, crossorigin] = attributes.map(attr => (tag[attr] ? `${attr}="${tag[attr]}" ` : ''));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user