Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
qwer951123 committed Jul 27, 2023
1 parent 073dc86 commit 315b33d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/sdk/src/wallet/utils/to-promise.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Observable, firstValueFrom, isObservable } from "rxjs";
import { Observable, firstValueFrom, isObservable } from 'rxjs';

export function toPromise <T extends any>(a: Observable<T> | Promise<T>): Promise<T> {
export function toPromise<T>(a: Observable<T> | Promise<T>): Promise<T> {
if (isObservable(a)) return firstValueFrom(a);

return a;
}
}

0 comments on commit 315b33d

Please sign in to comment.