mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +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 {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user