Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dqli164 committed Nov 27, 2023
1 parent ee325f2 commit ec46281
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions api/withdraw/create.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//nolint
package withdraw

import (
Expand Down
1 change: 1 addition & 0 deletions api/withdraw/update.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//nolint
package withdraw

import (
Expand Down
3 changes: 2 additions & 1 deletion pkg/mw/good/ledger/statement/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ func (h *Handler) DeleteGoodStatements(ctx context.Context) ([]*npool.GoodStatem
}
}
infos := []*npool.GoodStatement{}
// if either EntIDs or IDs is emtpy, you cannot use EntIDs and IDs as conditional queries at the same time, ent will add 'AND FALSE' at 'Where'
// if either EntIDs or IDs is empty, you cannot use EntIDs and IDs as conditional queries at the same time,
// ent will add 'AND FALSE' at 'Where'
if len(ids) > 0 {
h.Conds = &goodstatementcrud.Conds{IDs: &cruder.Cond{Op: cruder.IN, Val: ids}}
h.Limit = int32(len(ids))
Expand Down
3 changes: 2 additions & 1 deletion pkg/mw/ledger/statement/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ func (h *Handler) DeleteStatements(ctx context.Context) ([]*npool.Statement, err
// TODO: Deal Req with ID and EntID
}
infos := []*npool.Statement{}
// if either EntIDs or IDs is emtpy, you cannot use EntIDs and IDs as conditional queries at the same time, ent will add 'AND FALSE' at 'Where'
// if either EntIDs or IDs is empty, you cannot use EntIDs and IDs as conditional queries at the same time,
// ent will add 'AND FALSE' at 'Where'
if len(ids) > 0 {
h.Conds = &crud.Conds{IDs: &cruder.Cond{Op: cruder.IN, Val: ids}}
h.Limit = int32(len(ids))
Expand Down

0 comments on commit ec46281

Please sign in to comment.