misc: format file

This commit is contained in:
Xylight committed 2024-07-17 09:54:56 -07:00
1 parent 3a965e617d
commit 260fd895e2
1 file changed
+4 -4
+4 -4
View File
@@ -57,7 +57,7 @@ interface ProfileData {
defaultInstance?: string defaultInstance?: string
} }
interface PersonData extends MyUserInfo {} interface PersonData extends MyUserInfo { }
interface Notifications { interface Notifications {
inbox: number inbox: number
@@ -295,11 +295,11 @@ export function deleteProfile(id: number) {
profileData.update((pd) => { profileData.update((pd) => {
const index = pd.profiles.findIndex((p) => p.id == id) const index = pd.profiles.findIndex((p) => p.id == id)
if (index <= -1) return pd if (index <= -1) return pd
pd.profiles.splice(index, 1) pd.profiles.splice(index, 1)
if (id == pd.profile) resetProfile() if (id == pd.profile) resetProfile()
return pd return pd
}) })
} }
@@ -318,7 +318,7 @@ instance.subscribe(async (i) => {
const s = await new LemmyHttp(`https://${i}`).getSite() const s = await new LemmyHttp(`https://${i}`).getSite()
site.set(s) site.set(s)
} catch (e) {} } catch (e) { }
}) })
export async function setUserID(id: number) { export async function setUserID(id: number) {