]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: remove wrongly placed type casts
authorEvan You <yyx990803@gmail.com>
Thu, 2 Sep 2021 18:18:52 +0000 (14:18 -0400)
committerEvan You <yyx990803@gmail.com>
Thu, 2 Sep 2021 18:18:52 +0000 (14:18 -0400)
packages/sfc-playground/src/output/srcdoc.html
scripts/release.js

index d42b506ee17af0004781c3bf9c0f0ff00a67a1cd..91dd9e1adc1a85e8b70cccdcefa0139da7719b10 100644 (file)
@@ -61,7 +61,7 @@
                                                        }
                                                        window.__next__ = undefined
                                                        send_ok()
-                                               } catch (e: any) {
+                                               } catch (e) {
                                                        send_error(e.message, e.stack);
                                                }
                                        }
                                        }
                                        try {
                                                parent.postMessage({ action: 'error', value: error }, '*');
-                                       } catch (e: any) {
+                                       } catch (e) {
                                                parent.postMessage({ action: 'error', value: msg }, '*');
                                        }
                                }
                                        }
                                        try {
                                                parent.postMessage({ action: 'unhandledrejection', value: event.reason }, '*');
-                                       } catch (e: any) {
+                                       } catch (e) {
                                                parent.postMessage({ action: 'unhandledrejection', value: event.reason.message }, '*');
                                        }
                                });
index 7f3ea402b1083d80621064bcf4a8ea87f89416ac..482367a01c1827ecbf97f651a9849b213a965de5 100644 (file)
@@ -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 {