Skip to content

Commit

Permalink
Check for RMF store existence inside the Task that triggers fetching (#…
Browse files Browse the repository at this point in the history
…3337)

Task/Issue URL: https://app.asana.com/0/1205237866452338/1208377696019992/f

Description:
This is to fix a randomly failing unit test.
  • Loading branch information
ayoy authored Oct 8, 2024
1 parent ec9f5eb commit eb3b20d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions DuckDuckGo/RemoteMessaging/RemoteMessagingClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,10 @@ final class RemoteMessagingClient: RemoteMessagingProcessing {

/// It's public in order to allow refreshing on demand via Debug menu. Otherwise it shouldn't be called from outside.
func refreshRemoteMessages() {
guard let store else {
return
}

Task {
guard let store else {
return
}
try? await fetchAndProcess(using: store)
}
}
Expand Down

0 comments on commit eb3b20d

Please sign in to comment.