1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-08-31 00:01:03 +02:00

Use != for null checks (#1105)

This commit is contained in:
Matt Gibson 2021-07-29 10:38:35 -05:00 committed by GitHub
parent aafcc88162
commit 18aeeef6fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,7 +222,7 @@ export class EventService {
const policies = await this.policyService.getAll();
const policy = policies.filter(p => p.id === ev.policyId)[0];
let p1 = this.getShortId(ev.policyId);
if (policy !== null) {
if (policy != null) {
p1 = PolicyType[policy.type];
}