1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +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 {
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);
}
}