mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
PM-20490 add of to mitigate return-type annotation (#14377)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
// FIXME: Update this file to be type safe and remove this and next line
|
// FIXME: Update this file to be type safe and remove this and next line
|
||||||
// @ts-strict-ignore
|
// @ts-strict-ignore
|
||||||
import { firstValueFrom, switchMap, map } from "rxjs";
|
import { firstValueFrom, switchMap, map, of } from "rxjs";
|
||||||
|
|
||||||
import { OrganizationService } from "@bitwarden/common/admin-console/abstractions/organization/organization.service.abstraction";
|
import { OrganizationService } from "@bitwarden/common/admin-console/abstractions/organization/organization.service.abstraction";
|
||||||
import { PolicyService } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction";
|
import { PolicyService } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction";
|
||||||
@@ -780,7 +780,7 @@ export default class NotificationBackground {
|
|||||||
this.taskService.tasksEnabled$(userId).pipe(
|
this.taskService.tasksEnabled$(userId).pipe(
|
||||||
switchMap((tasksEnabled) => {
|
switchMap((tasksEnabled) => {
|
||||||
if (!tasksEnabled) {
|
if (!tasksEnabled) {
|
||||||
return [];
|
return of([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.taskService
|
return this.taskService
|
||||||
|
|||||||
Reference in New Issue
Block a user