1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-28 12:35:40 +01:00

null checks on log message

This commit is contained in:
Kyle Spearrin 2018-02-23 23:38:03 -05:00
parent 27046cb38e
commit cd3546513a

View File

@ -10,14 +10,26 @@ export class UpdaterLogger implements Logger {
} }
info(message?: any): void { info(message?: any): void {
if (message == null) {
return;
}
this.logService.info(message); this.logService.info(message);
} }
warn(message?: any): void { warn(message?: any): void {
if (message == null) {
return;
}
this.logService.warning(message); this.logService.warning(message);
} }
error(message?: any): void { error(message?: any): void {
if (message == null) {
return;
}
this.logService.error(message); this.logService.error(message);
} }
} }