Skip to content

Commit 2186c67

Browse files
author
Luca Forstner
committed
.
1 parent 8578a89 commit 2186c67

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/wasm/src/registry.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ export function getImages(): Array<DebugImage> {
6969
*/
7070
export function getImage(url: string): number {
7171
return IMAGES.findIndex(image => {
72-
if (image.type === 'wasm') {
73-
return image.code_file === url;
74-
} else {
75-
return false;
76-
}
72+
return image.type === 'wasm' && image.code_file === url;
7773
});
7874
}

0 commit comments

Comments
 (0)