Skip to content

Commit 830b101

Browse files
committed
resolve noop comparison warning
1 parent 6d2e820 commit 830b101

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/zmq/certificate.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ bool certificate::create(config::sodium& out_public,
7979
{
8080
// Loop until neither key's base85 encoding includes the # character.
8181
// This ensures that the value can be used in libbitcoin settings files.
82-
for (uint8_t attempt = 0; attempt <= max_uint8; attempt++)
82+
while (true)
8383
{
8484
char public_key[zmq_encoded_key_size + 1] = { 0 };
8585
char private_key[zmq_encoded_key_size + 1] = { 0 };
@@ -95,8 +95,6 @@ bool certificate::create(config::sodium& out_public,
9595
return out_public;
9696
}
9797
}
98-
99-
return false;
10098
}
10199

102100
certificate::operator bool() const

0 commit comments

Comments
 (0)