Skip to content

Commit c8d0786

Browse files
committed
refactor: drop lodash for lib/plugins/console/deploy
1 parent 9ba38e9 commit c8d0786

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/plugins/console/deploy.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use strict';
22

3-
const assignIn = require('lodash/assignIn');
4-
const clone = require('lodash/clone');
53
const fs = require('hexo-fs');
64
const chalk = require('chalk');
75
const Promise = require('bluebird');
@@ -23,7 +21,7 @@ function deployConsole(args) {
2321
}
2422

2523
return new Promise((resolve, reject) => {
26-
const generateArgs = clone(args);
24+
const generateArgs = {...args};
2725
generateArgs.d = false;
2826
generateArgs.deploy = false;
2927

@@ -52,7 +50,7 @@ function deployConsole(args) {
5250

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

55-
return Reflect.apply(deployers[type], this, [assignIn({}, item, args)]).then(() => {
53+
return Reflect.apply(deployers[type], this, [Object.assign({}, item, args)]).then(() => {
5654
this.log.info('Deploy done: %s', chalk.magenta(type));
5755
});
5856
}).then(() => {

0 commit comments

Comments
 (0)