refactor: array in one line

This commit is contained in:
curben 2019-05-30 19:20:20 +09:30
parent 0fe5658173
commit c601a31b13
1 changed files with 1 additions and 4 deletions

View File

@ -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)