chore: Enable modernize-unary-static-assert (#7705)

This commit is contained in:
Ayaz Salikhov
2026-07-02 19:30:59 +01:00
committed by GitHub
parent 6f0f5b8bb3
commit 41622b87ae
17 changed files with 203 additions and 206 deletions

View File

@@ -24,7 +24,7 @@ public:
static STAmount
amount(Integer integer, std::enable_if_t<std::is_signed_v<Integer>>* = 0)
{
static_assert(std::is_integral_v<Integer>, "");
static_assert(std::is_integral_v<Integer>);
return STAmount(integer, false);
}
@@ -32,7 +32,7 @@ public:
static STAmount
amount(Integer integer, std::enable_if_t<!std::is_signed_v<Integer>>* = 0)
{
static_assert(std::is_integral_v<Integer>, "");
static_assert(std::is_integral_v<Integer>);
if (integer < 0)
return STAmount(-integer, true);
return STAmount(integer, false);