fix: remove debug logging

This commit is contained in:
Snazzah 2024-05-15 22:46:29 -05:00
parent fe9a472bed
commit a311e52957
No known key found for this signature in database
GPG Key ID: EA479766A94CEB61

View File

@ -60,7 +60,6 @@ async function getStory(pathname) {
} }
export default async function(obj) { export default async function(obj) {
try {
let pathname; let pathname;
if (obj.url.hostname === 't.snapchat.com' && obj.shortLink) { if (obj.url.hostname === 't.snapchat.com' && obj.shortLink) {
const link = await getRedirectingURL(`https://t.snapchat.com/${obj.shortLink}`); const link = await getRedirectingURL(`https://t.snapchat.com/${obj.shortLink}`);
@ -86,9 +85,5 @@ export default async function(obj) {
if (result) return result; if (result) return result;
} }
} catch (e) {
console.log(e)
}
return { error: 'ErrorCouldntFetch' }; return { error: 'ErrorCouldntFetch' };
} }