Skip to content

Commit

Permalink
Simplify a return expression
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal committed Aug 8, 2023
1 parent 5c3f11e commit a20a347
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Quotient/e2ee/qolmaccount.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ IdentityKeys QOlmAccount::identityKeys() const
qPrintable("Failed to get "_ls % accountId() % " identity keys"_ls));
}
const auto key = QJsonDocument::fromJson(keyBuffer).object();
return IdentityKeys{ key.value(QStringLiteral("curve25519")).toString(),
key.value(QStringLiteral("ed25519")).toString() };
return { key.value(QStringLiteral("curve25519")).toString(),
key.value(QStringLiteral("ed25519")).toString() };
}

QByteArray QOlmAccount::sign(const QByteArray &message) const
Expand Down

0 comments on commit a20a347

Please sign in to comment.