Skip to content

Commit a661cf2

Browse files
authored
web: avoid unnecessary type assertions
1 parent 6496875 commit a661cf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/packages/extension/src/ruffle.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if (document.currentScript !== undefined && document.currentScript !== null) {
3838
}
3939
if (ID === null) {
4040
// if `script.src` is masked, get id from attrs
41-
const ruffleId = document.currentScript.getAttribute("ruffle-id")!;
41+
const ruffleId = document.currentScript.getAttribute("ruffle-id");
4242
if (ruffleId) {
4343
ID = ruffleId;
4444
}

0 commit comments

Comments
 (0)