mirror of
https://github.com/wukko/cobalt.git
synced 2024-06-14 11:06:49 +01:00
chore: remove redundancy
This commit is contained in:
parent
0dfc59a972
commit
48c48c61de
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue