aboutsummaryrefslogtreecommitdiff
path: root/cc/config
diff options
context:
space:
mode:
authorcinlin <cinlin@google.com>2023-07-13 14:19:14 -0700
committerCopybara-Service <copybara-worker@google.com>2023-07-13 14:20:44 -0700
commit6be2ee6423ae79c2ce528c58f827a1846dce2403 (patch)
tree34613dd3ef198eba826aeb20fb4e900ea6729589 /cc/config
parent0bbdfd84df04e7b8fe7da3217627bb9a9febb163 (diff)
downloadtink-6be2ee6423ae79c2ce528c58f827a1846dce2403.tar.gz
Delete extra variable assignment in Fips1402Test.
PiperOrigin-RevId: 547919425
Diffstat (limited to 'cc/config')
-rw-r--r--cc/config/fips_140_2_test.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/cc/config/fips_140_2_test.cc b/cc/config/fips_140_2_test.cc
index a5a9a4dc6..e10af86fe 100644
--- a/cc/config/fips_140_2_test.cc
+++ b/cc/config/fips_140_2_test.cc
@@ -131,9 +131,7 @@ TEST_F(Fips1402Test, GetPrimitive) {
std::string ad = "ad";
util::StatusOr<std::string> ciphertext = (*aead)->Encrypt(plaintext, ad);
ASSERT_THAT(ciphertext, IsOk());
-
- util::StatusOr<std::string> decrypted = (*aead)->Decrypt(*ciphertext, ad);
- EXPECT_THAT(decrypted, IsOkAndHolds(plaintext));
+ EXPECT_THAT((*aead)->Decrypt(*ciphertext, ad), IsOkAndHolds(plaintext));
}
} // namespace