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
1 changed files with 1 additions and 1 deletions

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