mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Omit catch block errors when not needed
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ module.exports = class ImageArgumentType extends ArgumentType {
|
||||
try {
|
||||
await request.get(value);
|
||||
return true;
|
||||
} catch (err) {
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user