mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-30 13:03:53 +01:00
null checks on log message
This commit is contained in:
parent
27046cb38e
commit
cd3546513a
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user