Lints some errors and warnings (#76)

This commit is contained in:
Aryan Goharzad 2023-01-20 14:43:28 -05:00 committed by GitHub
parent 2fce1637b4
commit 06e41167d0
22 changed files with 62 additions and 38 deletions

View file

@ -84,7 +84,7 @@ export async function post(
if (!embed && extLink) {
let thumb
if (extLink.localThumb) {
onStateChange?.(`Uploading link thumbnail...`)
onStateChange?.('Uploading link thumbnail...')
let encoding
if (extLink.localThumb.path.endsWith('.png')) {
encoding = 'image/png'
@ -140,7 +140,7 @@ export async function post(
}
try {
onStateChange?.(`Posting...`)
onStateChange?.('Posting...')
return await store.api.app.bsky.feed.post.create(
{did: store.me.did || ''},
{

View file

@ -426,7 +426,7 @@ export class FeedModel {
}
this._xLoading()
let numToFetch = this.feed.length
let cursor = undefined
let cursor
try {
do {
const res: GetTimeline.Response = await this._getFeed({

View file

@ -366,7 +366,7 @@ export class NotificationsViewModel {
}
this._xLoading()
let numToFetch = this.notifications.length
let cursor = undefined
let cursor
try {
do {
const res: ListNotifications.Response =

View file

@ -50,7 +50,9 @@ export class OnboardModel {
}
next() {
if (!this.isOnboarding) return
if (!this.isOnboarding) {
return
}
let i = OnboardStageOrder.indexOf(this.stage)
i++
if (i >= OnboardStageOrder.length) {