diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2024-08-14 19:40:15 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2024-08-14 19:40:15 +0200 |
commit | de2e5bc6e041e8b42834d928ba898df4f328e6e1 (patch) | |
tree | da4c58214ea80bb63018342891babbefdbaf5c3e | |
parent | 60f0935e173751805634f887c9ac9640a5e51e68 (diff) | |
download | Viper-de2e5bc6e041e8b42834d928ba898df4f328e6e1.tar.gz Viper-de2e5bc6e041e8b42834d928ba898df4f328e6e1.zip |
chore: remove useless try catch
-rw-r--r-- | src/modules/protocol.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/modules/protocol.js b/src/modules/protocol.js index 7f2f7c0..1aeb7f9 100644 --- a/src/modules/protocol.js +++ b/src/modules/protocol.js @@ -31,13 +31,8 @@ module.exports = async (argv) => { if (domain != "thunderstore.io") continue; - try { - if (term == "install") { - win().send("protocol-install-mod", [domain, author, package_name, version]); - } - }catch(err) { - console.error(err); - continue; + if (term == "install") { + win().send("protocol-install-mod", [domain, author, package_name, version]); } } } |