chore: remove true clause from return expressions

It is already checked at the top of the function.
This commit is contained in:
siiky 2025-06-25 11:37:32 +01:00
parent e103bc2f12
commit 4b723476bc

View file

@ -83,17 +83,12 @@ const SystemPerformance = () => {
if (getLastTimePeriod) { if (getLastTimePeriod) {
const duration = rangeEnd - rangeStart const duration = rangeEnd - rangeStart
return ( return (
t.error === null &&
createdTimestamp >= rangeStart - duration && createdTimestamp >= rangeStart - duration &&
createdTimestamp < rangeStart createdTimestamp < rangeStart
) )
} }
return ( return createdTimestamp >= rangeStart && createdTimestamp <= rangeEnd
t.error === null &&
createdTimestamp >= rangeStart &&
createdTimestamp <= rangeEnd
)
} }
const convertFiatToLocale = item => { const convertFiatToLocale = item => {