aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2024-08-14 19:40:15 +0200
committerJan200101 <sentrycraft123@gmail.com>2024-08-14 19:40:15 +0200
commitde2e5bc6e041e8b42834d928ba898df4f328e6e1 (patch)
treeda4c58214ea80bb63018342891babbefdbaf5c3e /src/modules
parent60f0935e173751805634f887c9ac9640a5e51e68 (diff)
downloadViper-de2e5bc6e041e8b42834d928ba898df4f328e6e1.tar.gz
Viper-de2e5bc6e041e8b42834d928ba898df4f328e6e1.zip
chore: remove useless try catch
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/protocol.js9
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]);
}
}
}