Skip to content

Commit 41520d5

Browse files
committed
Polish code
Signed-off-by: JCW <[email protected]>
1 parent 9643828 commit 41520d5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/libxrpl/beast/utility/beast_Journal.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,7 @@ Journal::JsonLogContext::reset(
156156
if (!globalLogAttributesJson_.empty())
157157
{
158158
writer().writeKey("GlobalParams");
159-
writer().writeRaw(std::string_view{
160-
std::begin(globalLogAttributesJson_),
161-
std::end(globalLogAttributesJson_)});
159+
writer().writeRaw(globalLogAttributesJson_);
162160
writer().endObject();
163161
}
164162
}
@@ -196,8 +194,7 @@ Journal::initMessageContext(
196194
currentJsonLogContext_.reset(
197195
location,
198196
severity,
199-
std::string_view{
200-
std::begin(m_attributesJson), std::end(m_attributesJson)});
197+
m_attributesJson);
201198
}
202199

203200
std::string_view

0 commit comments

Comments
 (0)