Remove curly braces on single line statements

This commit is contained in:
Jbleezy 2024-10-08 11:40:30 -07:00
parent 6beff28518
commit e98fad73b9

View File

@ -391,10 +391,8 @@ namespace
const auto dbSplRoundToValue = static_cast<uint16_t>(Common::DbsplToLinear(dbSplRound) * static_cast<float>(std::numeric_limits<uint16_t>::max())); const auto dbSplRoundToValue = static_cast<uint16_t>(Common::DbsplToLinear(dbSplRound) * static_cast<float>(std::numeric_limits<uint16_t>::max()));
if (dbSplRoundToValue == value) if (dbSplRoundToValue == value)
{
break; break;
} }
}
stream.WriteColumn(std::format("{}", dbSplRound)); stream.WriteColumn(std::format("{}", dbSplRound));
} }
@ -411,10 +409,8 @@ namespace
const auto centsRoundToValue = static_cast<uint16_t>(Common::CentsToHertz(centsRound) * static_cast<float>(std::numeric_limits<int16_t>::max())); const auto centsRoundToValue = static_cast<uint16_t>(Common::CentsToHertz(centsRound) * static_cast<float>(std::numeric_limits<int16_t>::max()));
if (centsRoundToValue == value) if (centsRoundToValue == value)
{
break; break;
} }
}
stream.WriteColumn(std::format("{}", centsRound)); stream.WriteColumn(std::format("{}", centsRound));
} }
@ -430,10 +426,8 @@ namespace
const auto normValueRoundToValue = static_cast<uint8_t>(normValueRound * static_cast<float>(std::numeric_limits<uint8_t>::max())); const auto normValueRoundToValue = static_cast<uint8_t>(normValueRound * static_cast<float>(std::numeric_limits<uint8_t>::max()));
if (normValueRoundToValue == value) if (normValueRoundToValue == value)
{
break; break;
} }
}
stream.WriteColumn(std::format("{}", normValueRound)); stream.WriteColumn(std::format("{}", normValueRound));
} }