mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-23 15:10:34 +00:00
Fix errors
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <xrpl/basics/ToString.h>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include <concepts>
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user