From c601a31b131cffa8af4278cddf9c7cc83b631b2f Mon Sep 17 00:00:00 2001 From: curben Date: Thu, 30 May 2019 19:20:20 +0930 Subject: [PATCH] refactor: array in one line --- themes/typing/scripts/sitemap/generator.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/themes/typing/scripts/sitemap/generator.js b/themes/typing/scripts/sitemap/generator.js index 9300e06..485ad95 100644 --- a/themes/typing/scripts/sitemap/generator.js +++ b/themes/typing/scripts/sitemap/generator.js @@ -5,10 +5,7 @@ const template = require('./template') module.exports = function (locals) { const config = this.config - let skipRenderList = [ - '*.js', - '*.css' - ] + let skipRenderList = ['*.js', '*.css'] if (Array.isArray(config.skip_render)) { skipRenderList = skipRenderList.concat(config.skip_render)