Fix three minor compiler warnings.

This commit is contained in:
Igor Solomennikov 2022-01-29 16:27:56 -08:00
parent ea55469ec8
commit 2cbb155e34
3 changed files with 2 additions and 6 deletions

View File

@ -436,8 +436,6 @@ class AudioMessageView: ManualStackView {
}
private func updateViewedState(animated: Bool = true) {
var isViewed = self.isViewed
let destination: AnimationProgressTime = isViewed ? 1 : 0
// Do nothing if we're already there.

View File

@ -378,8 +378,6 @@ public struct CVLongPressHandler {
return
}
let shouldAllowReply = delegate.cvc_shouldAllowReplyForItem(itemViewModel)
switch gestureLocation {
case .bodyText(let item):
delegate.cvc_didLongPressBodyTextItem(.init(item: item))

View File

@ -1,5 +1,5 @@
//
// Copyright (c) 2021 Open Whisper Systems. All rights reserved.
// Copyright (c) 2022 Open Whisper Systems. All rights reserved.
//
import UIKit
@ -106,7 +106,7 @@ public class RegistrationPinAttemptsExhaustedViewController: RegistrationBaseVie
func primaryButtonPressed() {
Logger.info("")
guard let navigationController = navigationController else {
guard navigationController != nil else {
owsFailDebug("Missing navigationController")
return
}