Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async getMagnet ( torrent ) {
try {
return await torrentSearch.getMagnet ( torrent );
} catch ( e ) {
return;
}
},
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, torrentSearch.getMagnet(torrent)];
case 1: return [2 /*return*/, _a.sent()];
case 2:
e_3 = _a.sent();
return [2 /*return*/];
case 3: return [2 /*return*/];
}
});
});