chore: remove redundancy

This commit is contained in:
Snazzah 2024-04-15 21:43:36 -05:00
parent 0dfc59a972
commit 48c48c61de
No known key found for this signature in database
GPG key ID: EA479766A94CEB61

View file

@ -16,8 +16,6 @@ export default async function(obj) {
link = `https://www.snapchat.com/add/${obj.username}/${obj.storyId}`
} else if (!link && obj.spotlightId) {
link = `https://www.snapchat.com/spotlight/${obj.spotlightId}`
} else if (link?.startsWith('https://www.snapchat.com/download')) {
return { error: 'ErrorCouldntFetch' };
}
const path = new URL(link).pathname;