diff options
author | Aryan Goharzad <arrygoo@gmail.com> | 2023-01-20 14:43:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-20 13:43:28 -0600 |
commit | 06e41167d05a26befb14b9742f4fc4ef3833d35d (patch) | |
tree | 53b1dea4922903ca91775980b6cfb1f0adea05e3 /src/state/models | |
parent | 2fce1637b4ae01667da8ceafaa07a6266ab88450 (diff) | |
download | voidsky-06e41167d05a26befb14b9742f4fc4ef3833d35d.tar.zst |
Lints some errors and warnings (#76)
Diffstat (limited to 'src/state/models')
-rw-r--r-- | src/state/models/feed-view.ts | 2 | ||||
-rw-r--r-- | src/state/models/notifications-view.ts | 2 | ||||
-rw-r--r-- | src/state/models/onboard.ts | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/state/models/feed-view.ts b/src/state/models/feed-view.ts index a1647518b..a7e3c6155 100644 --- a/src/state/models/feed-view.ts +++ b/src/state/models/feed-view.ts @@ -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({ diff --git a/src/state/models/notifications-view.ts b/src/state/models/notifications-view.ts index 965efb87d..32294ef33 100644 --- a/src/state/models/notifications-view.ts +++ b/src/state/models/notifications-view.ts @@ -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 = diff --git a/src/state/models/onboard.ts b/src/state/models/onboard.ts index 1af0223ab..5ab5ecb62 100644 --- a/src/state/models/onboard.ts +++ b/src/state/models/onboard.ts @@ -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) { |