Skip to content

Commit 06da220

Browse files
committed
Remove _.isPlainObject check as it's the last possible option
1 parent 058590a commit 06da220

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/statsUtils.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
const {createWriteStream} = require('fs');
22
const {Readable} = require('stream');
33

4-
const _ = require('lodash');
5-
64
class StatsSerializeStream extends Readable {
75
constructor(stats) {
86
super();
@@ -49,7 +47,7 @@ class StatsSerializeStream extends Readable {
4947

5048
this._indentLevel--;
5149
yield obj.length ? `\n${this._indent}]` : ']';
52-
} else if (_.isPlainObject(obj)) {
50+
} else {
5351
yield '{';
5452
this._indentLevel++;
5553

0 commit comments

Comments
 (0)