Skip to content

Commit 6d1af36

Browse files
committed
Throw error for invalid branch
1 parent b324ad2 commit 6d1af36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/snaps-rpc-methods/src/permitted/setState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,5 +248,5 @@ export function set(
248248

249249
// This should never be reached.
250250
/* istanbul ignore next */
251-
return {};
251+
throw new Error('Unexpected error while setting the state.');
252252
}

0 commit comments

Comments
 (0)