Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeBoy committed Jan 3, 2024
1 parent ce9802c commit d8848de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion libwallet/instantswap/instantswap.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ func (instantSwap *InstantSwap) NewExchangeServer(exchangeServer ExchangeServer)
// If status is specified, only orders with that status will be returned.
// status is made optional to the sync functionality can update all orders.
func (instantSwap *InstantSwap) GetOrdersRaw(offset, limit int32, newestFirst bool, server, txID string, status ...instantswap.Status) ([]*Order, error) {
var query storm.Query
matchers := make([]q.Matcher, 0)

if len(status) > 0 {
Expand All @@ -148,6 +147,7 @@ func (instantSwap *InstantSwap) GetOrdersRaw(offset, limit int32, newestFirst bo
matchers = append(matchers, q.True())
}

var query storm.Query
query = instantSwap.db.Select(matchers...)

if offset > 0 {
Expand Down
1 change: 0 additions & 1 deletion ui/page/exchange/order_history_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ func (pg *OrderHistoryPage) initServerSelector() {
pg.exchangeServers = pg.AssetsManager.InstantSwap.ExchangeServers()

items := []cryptomaterial.DropDownItem{{
// Icon: pg.Theme.Icons.WalletIcon,
Text: values.String(values.StrAllservers),
}}
for _, server := range pg.exchangeServers {
Expand Down

0 comments on commit d8848de

Please sign in to comment.