Skip to content

Commit

Permalink
Remove using namespace
Browse files Browse the repository at this point in the history
Signed-off-by: kamilsa <[email protected]>
  • Loading branch information
kamilsa committed Dec 27, 2017
1 parent 0b48641 commit 082c98e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions shared_model/validators/commands_validator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,8 @@ namespace shared_model {
void validatePeerAddress(
ReasonsGroupType &reason,
const interface::AddPeer::AddressType &address) const {
using namespace iroha::validator;

if (not(is_valid_ipv4(address) or is_valid_hostname(address))) {
if (not(iroha::validator::is_valid_ipv4(address)
or iroha::validator::is_valid_hostname(address))) {
reason.second.push_back("Wrongly formed PeerAddress: " + address);
}
}
Expand Down

0 comments on commit 082c98e

Please sign in to comment.