1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-22 22:20:39 +00:00

chore: remove invalid assertion test (#4860)

Fixes #4078.
This commit is contained in:
Charles Kerr 2023-02-12 18:38:18 -06:00 committed by GitHub
parent 649fd4d0d2
commit a2faaabe69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,6 @@
#include <memory>
#include "tr-macros.h" // tr_sha1_digest_t
#include "tr-assert.h"
#include "tr-arc4.h"
class tr_arc4;
@ -61,9 +60,8 @@ public:
void setPeerPublicKey(key_bigend_t const& peer_public_key);
// Returns the shared secret.
[[nodiscard]] auto secret() const noexcept
[[nodiscard]] constexpr auto const& secret() const noexcept
{
TR_ASSERT(secret_ != key_bigend_t{});
return secret_;
}