From cd3546513a5883d91af7422066b6ea271624d14d Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 23 Feb 2018 23:38:03 -0500 Subject: [PATCH] null checks on log message --- src/scripts/updaterLogger.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/scripts/updaterLogger.ts b/src/scripts/updaterLogger.ts index 0e91569302..0e8f8159d8 100644 --- a/src/scripts/updaterLogger.ts +++ b/src/scripts/updaterLogger.ts @@ -10,14 +10,26 @@ export class UpdaterLogger implements Logger { } info(message?: any): void { + if (message == null) { + return; + } + this.logService.info(message); } warn(message?: any): void { + if (message == null) { + return; + } + this.logService.warning(message); } error(message?: any): void { + if (message == null) { + return; + } + this.logService.error(message); } }