mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-26 18:42:43 +01:00
Problem: redundant else after return
Solution: remove else
This commit is contained in:
committed by
Simon Giesecke
parent
1d9c6bcf09
commit
cb2b377d9f
@@ -160,9 +160,9 @@ static void test_resolve (zmq::ip_resolver_options_t opts_,
|
||||
// TODO also check the expected errno
|
||||
TEST_ASSERT_EQUAL (-1, rc);
|
||||
return;
|
||||
} else {
|
||||
TEST_ASSERT_SUCCESS_ERRNO (rc);
|
||||
}
|
||||
TEST_ASSERT_SUCCESS_ERRNO (rc);
|
||||
|
||||
|
||||
validate_address (family, &addr, expected_addr_, expected_port_,
|
||||
expected_zone_, expected_addr_v4_failover_);
|
||||
|
||||
@@ -54,9 +54,9 @@ static void test_resolve (bool bind_,
|
||||
TEST_ASSERT_EQUAL (-1, rc);
|
||||
TEST_ASSERT_EQUAL (EINVAL, errno);
|
||||
return;
|
||||
} else {
|
||||
TEST_ASSERT_EQUAL (0, rc);
|
||||
}
|
||||
TEST_ASSERT_EQUAL (0, rc);
|
||||
|
||||
|
||||
TEST_ASSERT_EQUAL (multicast_, addr.is_mcast ());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user