Skip to content

Commit 138b1a3

Browse files
authored
refactor: use an object spread instead of Object.assign (#2395)
1 parent 9d3cfb6 commit 138b1a3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/command.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,10 @@ class Command extends EventEmitter {
245245
configureOutput(configuration) {
246246
if (configuration === undefined) return this._outputConfiguration;
247247

248-
this._outputConfiguration = Object.assign(
249-
{},
250-
this._outputConfiguration,
251-
configuration,
252-
);
248+
this._outputConfiguration = {
249+
...this._outputConfiguration,
250+
...configuration,
251+
};
253252
return this;
254253
}
255254

0 commit comments

Comments
 (0)