Skip to content

Commit

Permalink
refactor: drop lodash console/deploy (#3785)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW authored Oct 27, 2019
1 parent e0f2478 commit 94b4692
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/plugins/console/deploy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use strict';

const assignIn = require('lodash/assignIn');
const clone = require('lodash/clone');
const fs = require('hexo-fs');
const chalk = require('chalk');
const Promise = require('bluebird');
Expand All @@ -23,7 +21,7 @@ function deployConsole(args) {
}

return new Promise((resolve, reject) => {
const generateArgs = clone(args);
const generateArgs = {...args};
generateArgs.d = false;
generateArgs.deploy = false;

Expand Down Expand Up @@ -52,7 +50,7 @@ function deployConsole(args) {

this.log.info('Deploying: %s', chalk.magenta(type));

return Reflect.apply(deployers[type], this, [assignIn({}, item, args)]).then(() => {
return Reflect.apply(deployers[type], this, [Object.assign({}, item, args)]).then(() => {
this.log.info('Deploy done: %s', chalk.magenta(type));
});
}).then(() => {
Expand Down

0 comments on commit 94b4692

Please sign in to comment.