Fix clang-format!

This commit is contained in:
lilei 2020-12-15 13:39:46 +08:00
parent f493fdb475
commit 9493a577b7
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ Iter fixZerosInTheEnd(Iter begin, Iter end, unsigned int precision) {
}
// Don't delete the last zero before the decimal point.
if (begin != (end - 1) && begin != (end - 2) && *(end - 2) == '.') {
if(precision) {
if (precision) {
return end;
}
return end - 2;

View File

@ -163,7 +163,7 @@ String valueToString(double value, bool useSpecialFloats,
// strip the zero padding from the right
if (precisionType == PrecisionType::decimalPlaces) {
buffer.erase(fixZerosInTheEnd(buffer.begin(), buffer.end(), precision),
buffer.end());
buffer.end());
}
return buffer;