Fix indentation on #if macros
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user