Skip to content

Commit 9253922

Browse files
committed
refactor: remove usage of _.isNil
1 parent 4b5ee3c commit 9253922

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/license-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ class LicensePlugin {
372372
* @private
373373
*/
374374
_readBanner(banner) {
375-
if (_.isNil(banner)) {
375+
if (banner == null) {
376376
return null;
377377
}
378378

src/schema-validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function validateObject(obj, schema, current) {
6969
const errors = [];
7070

7171
_.forEach(obj, (value, k) => {
72-
if (_.isNil(value)) {
72+
if (value == null) {
7373
return;
7474
}
7575

src/schema-validators.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function isNumber(value) {
7171
* @return {boolean} `true` if `value` is `null` or `undefined`, `false` otherwise.
7272
*/
7373
function isNil(value) {
74-
return _.isNil(value);
74+
return value == null;
7575
}
7676

7777
/**

0 commit comments

Comments
 (0)