Skip to content

Commit 950cf91

Browse files
committed
fix: logic bug on startup
Signed-off-by: Tommy van der Vorst <tommy@pixelspark.nl>
1 parent 73cda0d commit 950cf91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sushitrain/AppState.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ struct SyncState {
238238
}
239239

240240
@MainActor func start() async {
241-
if self.startupState != .notStarted || self.startupState != .onboarding {
241+
if self.startupState != .notStarted && self.startupState != .onboarding {
242242
assertionFailure("cannot start again")
243243
}
244244

0 commit comments

Comments
 (0)