refactor(sitemap): Array.concat() to Array.push()

This commit is contained in:
curben 2019-11-04 10:44:30 +00:00
parent 6d18a37e09
commit 8b510a0380
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ module.exports = function (locals) {
let skipRenderList = ['*.js', '*.css']
if (Array.isArray(config.skip_render)) {
skipRenderList = skipRenderList.concat(config.skip_render)
skipRenderList.push(...config.skip_render)
} else if (config.skip_render != null) {
skipRenderList.push(config.skip_render)
}