Skip to content

Commit

Permalink
Merge pull request #76 from curbengh/array-push
Browse files Browse the repository at this point in the history
refactor: array.concat() to array.push()
  • Loading branch information
curbengh committed Nov 4, 2019
2 parents 57c2106 + 6257869 commit d417f0b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/generator.js
Expand Up @@ -4,15 +4,15 @@ const micromatch = require('micromatch');
const template = require('./template');

module.exports = function(locals) {
const {config} = this;
const { config } = this;
let skipRenderList = [
'**/*.js',
'**/*.css'
];

if (Array.isArray(config.skip_render)) {
skipRenderList = skipRenderList.concat(config.skip_render);
} else if (config.skip_render != null) {
skipRenderList.push(...config.skip_render);
} else if (config.skip_render !== null) {
skipRenderList.push(config.skip_render);
}

Expand All @@ -25,8 +25,8 @@ module.exports = function(locals) {
});

const xml = template(config).render({
config: config,
posts: posts
config,
posts
});

return {
Expand Down

0 comments on commit d417f0b

Please sign in to comment.