Skip to content

Commit 9493a57

Browse files
committed
Fix clang-format!
1 parent f493fdb commit 9493a57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib_json/json_tool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Iter fixZerosInTheEnd(Iter begin, Iter end, unsigned int precision) {
124124
}
125125
// Don't delete the last zero before the decimal point.
126126
if (begin != (end - 1) && begin != (end - 2) && *(end - 2) == '.') {
127-
if(precision) {
127+
if (precision) {
128128
return end;
129129
}
130130
return end - 2;

src/lib_json/json_writer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ String valueToString(double value, bool useSpecialFloats,
163163
// strip the zero padding from the right
164164
if (precisionType == PrecisionType::decimalPlaces) {
165165
buffer.erase(fixZerosInTheEnd(buffer.begin(), buffer.end(), precision),
166-
buffer.end());
166+
buffer.end());
167167
}
168168

169169
return buffer;

0 commit comments

Comments
 (0)