summaryrefslogtreecommitdiff
path: root/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-06-03 21:00:15 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-06-03 21:00:15 +0200
commit8c215a19d7fb92b3972d0dc299cfcb56a79f0319 (patch)
treecfbddf67b0e65e217afab7d4b15cbf8149a71a78 /src/wallet.ts
parent73bcf22ebf39078e9998d191780ba8cabedb893c (diff)
downloadwallet-core-8c215a19d7fb92b3972d0dc299cfcb56a79f0319.tar.gz
wallet-core-8c215a19d7fb92b3972d0dc299cfcb56a79f0319.tar.bz2
wallet-core-8c215a19d7fb92b3972d0dc299cfcb56a79f0319.zip
remove unnecessary/broken flatmap
Diffstat (limited to 'src/wallet.ts')
-rw-r--r--src/wallet.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/wallet.ts b/src/wallet.ts
index 5b24f7939..ec7eade9c 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -2124,14 +2124,12 @@ export class Wallet {
async getExchanges(): Promise<ExchangeRecord[]> {
return this.q()
.iter<ExchangeRecord>(Stores.exchanges)
- .flatMap((e) => [e])
.toArray();
}
async getCurrencies(): Promise<CurrencyRecord[]> {
return this.q()
.iter<CurrencyRecord>(Stores.currencies)
- .flatMap((e) => [e])
.toArray();
}