1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-30 16:23:53 +00:00

Fix type issues

This commit is contained in:
Nik Gilmore
2026-01-16 14:28:10 -08:00
parent ea4ed211f4
commit 12e2fb8d2b

View File

@@ -1,4 +1,4 @@
import { firstValueFrom, switchMap, catchError, of } from "rxjs";
import { firstValueFrom, switchMap, catchError } from "rxjs";
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
import { SdkService } from "@bitwarden/common/platform/abstractions/sdk/sdk.service";
@@ -18,7 +18,7 @@ export class DefaultCipherSdkService implements CipherSdkService {
cipherView: CipherView,
userId: UserId,
orgAdmin?: boolean,
): Promise<CipherView | void> {
): Promise<CipherView> {
return await firstValueFrom(
this.sdkService.userClient$(userId).pipe(
switchMap(async (sdk) => {
@@ -37,7 +37,7 @@ export class DefaultCipherSdkService implements CipherSdkService {
}),
catchError((error: unknown) => {
this.logService.error(`Failed to create cipher: ${error}`);
return of(undefined);
throw error;
}),
),
);