From 9850e0bd73deec2950add52b862aa30f18a7e4bc Mon Sep 17 00:00:00 2001 From: Rui Date: Wed, 20 Mar 2024 18:54:29 -0700 Subject: [PATCH] Lint --- .../exchange/dydx/trading/common/formatter/DydxFormatter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v4/common/src/main/java/exchange/dydx/trading/common/formatter/DydxFormatter.kt b/v4/common/src/main/java/exchange/dydx/trading/common/formatter/DydxFormatter.kt index d6be209a..a7b1a325 100644 --- a/v4/common/src/main/java/exchange/dydx/trading/common/formatter/DydxFormatter.kt +++ b/v4/common/src/main/java/exchange/dydx/trading/common/formatter/DydxFormatter.kt @@ -150,7 +150,7 @@ class DydxFormatter @Inject constructor() { val formattedNumber = localFormatted(number.abs(), digits) return formattedNumber?.let { val rawDouble = raw(number.toDouble(), digits)?.toDouble() ?: 0.0 - if (rawDouble >= 0.0) { + if (rawDouble >= 0.0) { "$$it" } else { "-$$it"