Fix errors

This commit is contained in:
JCW
2026-06-10 14:55:00 +01:00
parent 0883082742
commit 7cb964c217
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
#pragma once
#include <xrpl/basics/ToString.h>
#include <fmt/format.h>
#include <concepts>

View File

@@ -205,7 +205,7 @@ scrubSecrets(fmt::memory_buffer& output)
// Fast path: if there's no double-quote anywhere in the message,
// none of the JSON-like tokens can possibly match.
std::string_view const view{output.data(), output.size()};
if (view.contains('"'))
if (!view.contains('"'))
return;
// We need string operations (find/replace) so convert temporarily.