From 35d02013f29d19fabf678089ba97db2e67ab3f25 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Mon, 7 Jan 2013 14:32:35 +0530 Subject: [PATCH] [2432] Minimize code --- src/lib/dns/tests/rrset_collection_unittest.cc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/lib/dns/tests/rrset_collection_unittest.cc b/src/lib/dns/tests/rrset_collection_unittest.cc index a19362322b..49b7606b14 100644 --- a/src/lib/dns/tests/rrset_collection_unittest.cc +++ b/src/lib/dns/tests/rrset_collection_unittest.cc @@ -125,19 +125,16 @@ doAddAndRemove(RRsetCollection& collection, const RRClass& rrclass) { }, isc::InvalidParameter); // Remove foo.example.org/A, which should pass - bool exists = collection.removeRRset(Name("foo.example.org"), - rrclass, RRType::A()); - EXPECT_TRUE(exists); - + EXPECT_TRUE(collection.removeRRset(Name("foo.example.org"), + rrclass, RRType::A())); // foo.example.org/A should not exist now rrset_found = collection.find(Name("foo.example.org"), rrclass, RRType::A()); EXPECT_FALSE(rrset_found); // Removing foo.example.org/A should fail now - exists = collection.removeRRset(Name("foo.example.org"), - rrclass, RRType::A()); - EXPECT_FALSE(exists); + EXPECT_FALSE(collection.removeRRset(Name("foo.example.org"), + rrclass, RRType::A())); } TEST_F(RRsetCollectionTest, addAndRemove) {