1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00: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

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];
}