Skip to content

Commit

Permalink
chore: remove wrongly placed type casts
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 2, 2021
1 parent bacb201 commit fb43aab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/sfc-playground/src/output/srcdoc.html
Expand Up @@ -61,7 +61,7 @@
}
window.__next__ = undefined
send_ok()
} catch (e: any) {
} catch (e) {
send_error(e.message, e.stack);
}
}
Expand Down Expand Up @@ -109,7 +109,7 @@
}
try {
parent.postMessage({ action: 'error', value: error }, '*');
} catch (e: any) {
} catch (e) {
parent.postMessage({ action: 'error', value: msg }, '*');
}
}
Expand All @@ -121,7 +121,7 @@
}
try {
parent.postMessage({ action: 'unhandledrejection', value: event.reason }, '*');
} catch (e: any) {
} catch (e) {
parent.postMessage({ action: 'unhandledrejection', value: event.reason.message }, '*');
}
});
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.js
Expand Up @@ -220,7 +220,7 @@ async function publishPackage(pkgName, version, runIfNotDry) {
}
)
console.log(chalk.green(`Successfully published ${pkgName}@${version}`))
} catch (e: any) {
} catch (e) {
if (e.stderr.match(/previously published/)) {
console.log(chalk.red(`Skipping already published: ${pkgName}`))
} else {
Expand Down

0 comments on commit fb43aab

Please sign in to comment.