Skip to content

Commit

Permalink
Resolve two warnings that happen in debug or beta builds
Browse files Browse the repository at this point in the history
  • Loading branch information
st3fan committed Jun 17, 2020
1 parent 5a1ffb0 commit d872c02
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Extensions/NotificationService/NotificationService.swift
Expand Up @@ -144,19 +144,18 @@ extension SyncDataDisplay {
Sentry.shared.send(message: "SentTab error: account not verified")
#if MOZ_CHANNEL_BETA || DEBUG
presentNotification(title: Strings.SentTab_NoTabArrivingNotification_title, body: "DEBUG: Account Verified")
return
#else
presentNotification(title: Strings.SentTab_NoTabArrivingNotification_title, body: Strings.SentTab_NoTabArrivingNotification_body)
#endif
presentNotification(title: Strings.SentTab_NoTabArrivingNotification_title, body: Strings.SentTab_NoTabArrivingNotification_body)
}

func displayUnknownMessageNotification(debugInfo: String) {
Sentry.shared.send(message: "SentTab error: \(debugInfo)")
#if MOZ_CHANNEL_BETA || DEBUG
presentNotification(title: Strings.SentTab_NoTabArrivingNotification_title, body: "DEBUG: " + debugInfo)
return
#else
presentNotification(title: Strings.SentTab_NoTabArrivingNotification_title, body: Strings.SentTab_NoTabArrivingNotification_body)
#endif

presentNotification(title: Strings.SentTab_NoTabArrivingNotification_title, body: Strings.SentTab_NoTabArrivingNotification_body)
}
}

Expand Down

0 comments on commit d872c02

Please sign in to comment.