Skip to content

Commit 700e364

Browse files
committed
fix [DEP0051] DeprecationWarning
1 parent f4864b5 commit 700e364

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/EIDEProjectModules.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import * as fs from 'fs';
55
import * as vscode from 'vscode';
66
import * as NodePath from 'path';
77
import { jsonc } from 'jsonc';
8-
import { isNullOrUndefined } from "util";
98
import * as child_process from 'child_process';
109

1110
import { File } from "../lib/node-utility/File";
@@ -379,7 +378,7 @@ export abstract class ConfigModel<DataType> {
379378

380379
// set default value
381380
for (const key in _default) {
382-
if (!isNullOrUndefined(_default[key])) {
381+
if (_default[key] !== undefined && _default[key] !== null) {
383382
if (typeof (<any>newConfig)[key] !== typeof _default[key]) {
384383
(<any>newConfig)[key] = _default[key];
385384
}

0 commit comments

Comments
 (0)