Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhan-simsek-iota committed Jan 18, 2025
1 parent 7c4f2ec commit 42c2b3d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ impl ValidatorMetadataV1 {

let primary_address = Multiaddr::try_from(self.primary_address.clone())
.map_err(|_| E_METADATA_INVALID_PRIMARY_ADDR)?;
if !primary_address.is_loosely_valid_tcp_addr() || !primary_address.is_loosely_valid_udp_addr() {
if !primary_address.is_loosely_valid_tcp_addr()
|| !primary_address.is_loosely_valid_udp_addr()
{
return Err(E_METADATA_INVALID_PRIMARY_ADDR);
}

Expand Down

0 comments on commit 42c2b3d

Please sign in to comment.