Skip to content

Commit 568e005

Browse files
fix: braced return for hash_hex success path in Clang-Tidy
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 47b2b45 commit 568e005

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/nuclearnet/Log.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ namespace {
7474
if (n < 0) {
7575
return {"0x?"};
7676
}
77-
return std::string(buf.data(), static_cast<std::size_t>(n));
77+
return {buf.data(), static_cast<std::size_t>(n)};
7878
}
7979

8080
std::string sock_str(const util::network::sock_t& address) {

0 commit comments

Comments
 (0)