Skip to content

Commit 2a0f6d1

Browse files
Fix PR comments
1 parent 08e6713 commit 2a0f6d1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/sys-info.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@ export class SysInfo implements NativeScriptDoctor.ISysInfo {
2828
private npmVerCache: string;
2929
private nodeGypVerCache: string;
3030
private xCodeprojGemLocationCache: string;
31-
private iTunesInstalledCache: boolean = null;
31+
private iTunesInstalledCache: boolean;
3232
private cocoaPodsVerCache: string;
3333
private osCache: string;
3434
private adbVerCache: string;
35-
private androidInstalledCache: boolean = null;
35+
private androidInstalledCache: boolean;
3636
private monoVerCache: string;
3737
private gitVerCache: string;
3838
private gradleVerCache: string;
3939
private sysInfoCache: NativeScriptDoctor.ISysInfoData;
40-
private isCocoaPodsWorkingCorrectlyCache: boolean = null;
40+
private isCocoaPodsWorkingCorrectlyCache: boolean;
4141
private nativeScriptCliVersionCache: string;
4242
private xcprojInfoCache: NativeScriptDoctor.IXcprojInfo;
43-
private isCocoaPodsUpdateRequiredCache: boolean = null;
43+
private isCocoaPodsUpdateRequiredCache: boolean;
4444
private shouldCache: boolean = true;
45-
private isAndroidSdkConfiguredCorrectlyCache: boolean = null;
45+
private isAndroidSdkConfiguredCorrectlyCache: boolean;
4646

4747
constructor(private childProcess: ChildProcess,
4848
private fileSystem: FileSystem,
@@ -320,7 +320,7 @@ export class SysInfo implements NativeScriptDoctor.ISysInfo {
320320
const propertyName = this.helpers.getPropertyName(property);
321321
const cachedValue: T = (<any>this)[propertyName];
322322

323-
if (cachedValue === undefined || cachedValue === null) {
323+
if (cachedValue === undefined) {
324324
const result = await getValueMethod();
325325
(<any>this)[propertyName] = result;
326326
return result;

0 commit comments

Comments
 (0)