]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2250] format else statement
authorRazvan Becheriu <razvan@isc.org>
Tue, 8 Feb 2022 13:29:18 +0000 (15:29 +0200)
committerAndrei Pavel <andrei@isc.org>
Wed, 9 Feb 2022 08:54:41 +0000 (10:54 +0200)
src/hooks/dhcp/high_availability/tests/ha_config_unittest.cc
src/lib/asiolink/tcp_socket.h
src/lib/asiolink/udp_socket.h

index e6f98db2cf198300a85b6e1ff0d75d3db1bc541c..22a045db726bd54ccd92dbfdbf7827d172bef154 100644 (file)
@@ -1719,7 +1719,6 @@ TEST_F(HAConfigTest, pausingToString) {
               HAConfig::StateConfig::pausingToString(STATE_PAUSE_NEVER));
     EXPECT_EQ("once",
               HAConfig::StateConfig::pausingToString(STATE_PAUSE_ONCE));
-
 }
 
 // Verifies permutations of HA+MT configuration.
@@ -1885,6 +1884,6 @@ TEST_F(HAConfigTest, ipv6Url) {
 
     // Check the URL.
     EXPECT_EQ(impl->getConfig()->getThisServerConfig()->getUrl().toText(), "http://[2001:db8::1]:8080/");
-};
+}
 
 } // end of anonymous namespace
index 72d98b3488291e8ffbf039b939c4d558f04b743d..c8ea4544a8c771b37a468c4b577740f15982d58e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2022 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -289,8 +289,7 @@ TCPSocket<C>::open(const IOEndpoint* endpoint, C& callback) {
     if (!socket_.is_open()) {
         if (endpoint->getFamily() == AF_INET) {
             socket_.open(boost::asio::ip::tcp::v4());
-        }
-        else {
+        } else {
             socket_.open(boost::asio::ip::tcp::v6());
         }
 
index 66815ed018fda2026c0268d8d30cc0ce0fd501d1..fea8defd75477d4234732fc3bd24358e64f16b1d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2022 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -198,8 +198,7 @@ UDPSocket<C>::open(const IOEndpoint* endpoint, C&) {
     if (!isopen_) {
         if (endpoint->getFamily() == AF_INET) {
             socket_.open(boost::asio::ip::udp::v4());
-        }
-        else {
+        } else {
             socket_.open(boost::asio::ip::udp::v6());
         }
         isopen_ = true;