File tree 1 file changed +2
-2
lines changed
packages/keyring-snap-bridge/src
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -577,7 +577,7 @@ export class SnapKeyring extends EventEmitter {
577
577
) : Promise < void > {
578
578
const { message = '' , url = '' } = redirect ;
579
579
if ( url ) {
580
- await this . #validateRedirectUrl( url , snapId ) ;
580
+ this . #validateRedirectUrl( url , snapId ) ;
581
581
}
582
582
await this . #callbacks. redirectUser ( snapId , url , message ) ;
583
583
}
@@ -589,7 +589,7 @@ export class SnapKeyring extends EventEmitter {
589
589
* @param snapId - The Snap ID to check allowed origins for.
590
590
* @throws An error if the URL's origin is not in the Snap's allowed origins.
591
591
*/
592
- async #validateRedirectUrl( url : string , snapId : SnapId ) : Promise < void > {
592
+ #validateRedirectUrl( url : string , snapId : SnapId ) : void {
593
593
const { origin } = new URL ( url ) ;
594
594
const snap = this . #snapClient. getController ( ) . get ( snapId ) ;
595
595
if ( ! snap ) {
You can’t perform that action at this time.
0 commit comments