fix: prefer ! over ?

This commit is contained in:
Nicolas Werner 2021-09-29 15:59:19 +02:00
parent d15c71e5b3
commit 08bbb3f6f5
1 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@ class KeyVerification {
transactionId ??= eventId ?? payload['transaction_id'];
if (method != null) {
// the other side sent us a start, even though we already sent one
if (payload['method'] == method?.type) {
if (payload['method'] == method!.type) {
// same method. Determine priority
final ourEntry = '${client.userID}|${client.deviceID}';
final entries = [ourEntry, '$userId|$deviceId'];
@ -274,7 +274,7 @@ class KeyVerification {
startedVerification = false; // it is now as if they started
thisLastStep = lastStep =
EventTypes.KeyVerificationRequest; // we fake the last step
method?.dispose(); // in case anything got created already
method!.dispose(); // in case anything got created already
}
} else {
// methods don't match up, let's cancel this