remove unnecessary/broken flatmap

This commit is contained in:
Florian Dold 2017-06-03 21:00:15 +02:00
parent 73bcf22ebf
commit 8c215a19d7
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 31 additions and 113 deletions

File diff suppressed because one or more lines are too long

View File

@ -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();
}