Skip to content

Commit fb43aab

Browse files
committed
chore: remove wrongly placed type casts
1 parent bacb201 commit fb43aab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/sfc-playground/src/output/srcdoc.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
}
6262
window.__next__ = undefined
6363
send_ok()
64-
} catch (e: any) {
64+
} catch (e) {
6565
send_error(e.message, e.stack);
6666
}
6767
}
@@ -109,7 +109,7 @@
109109
}
110110
try {
111111
parent.postMessage({ action: 'error', value: error }, '*');
112-
} catch (e: any) {
112+
} catch (e) {
113113
parent.postMessage({ action: 'error', value: msg }, '*');
114114
}
115115
}
@@ -121,7 +121,7 @@
121121
}
122122
try {
123123
parent.postMessage({ action: 'unhandledrejection', value: event.reason }, '*');
124-
} catch (e: any) {
124+
} catch (e) {
125125
parent.postMessage({ action: 'unhandledrejection', value: event.reason.message }, '*');
126126
}
127127
});

scripts/release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ async function publishPackage(pkgName, version, runIfNotDry) {
220220
}
221221
)
222222
console.log(chalk.green(`Successfully published ${pkgName}@${version}`))
223-
} catch (e: any) {
223+
} catch (e) {
224224
if (e.stderr.match(/previously published/)) {
225225
console.log(chalk.red(`Skipping already published: ${pkgName}`))
226226
} else {

0 commit comments

Comments
 (0)