Fix indentation on #if macros

This commit is contained in:
2024-12-01 19:28:14 +01:00
parent 44251a85a6
commit 5cd4d9189b
2 changed files with 6 additions and 6 deletions

View File

@@ -51,11 +51,11 @@ class CoinbasePriceFetcher : PriceFetcher {
return nil return nil
} }
#if !SKIP #if !SKIP
return Decimal(string: coinbasePrice.amount) return Decimal(string: coinbasePrice.amount)
#else #else
return Decimal(coinbasePrice.amount) return Decimal(coinbasePrice.amount)
#endif #endif
} catch { } catch {
return nil return nil
} }

View File

@@ -184,11 +184,11 @@ class SatsViewModel: ObservableObject {
if let currencyValue = self.currencyValue(for: currency) { if let currencyValue = self.currencyValue(for: currency) {
if let btcToCurrency = self.currencyPrices[currency] { if let btcToCurrency = self.currencyPrices[currency] {
#if !SKIP #if !SKIP
let btc = currencyValue / btcToCurrency let btc = currencyValue / btcToCurrency
#else #else
let btc = currencyValue.divide(btcToCurrency, 20, java.math.RoundingMode.DOWN) let btc = currencyValue.divide(btcToCurrency, 20, java.math.RoundingMode.DOWN)
#endif #endif
self.btcStringInternal = btc.formatString() self.btcStringInternal = btc.formatString()
let sats = btc * Decimal(100000000) let sats = btc * Decimal(100000000)