mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-21 14:20:56 +00:00
chore: Enable modernize-unary-static-assert (#7705)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user