[#357] Fix linter issues

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-01-29 11:02:06 +03:00 committed by Alex Vanin
parent 819300f939
commit 244bcc5c04
2 changed files with 1 additions and 2 deletions

View file

@ -79,6 +79,5 @@ func (np *Processor) ListenerHandlers() []event.HandlerInfo {
// TimersHandlers for the 'Timers' event producer.
func (np *Processor) TimersHandlers() []event.HandlerInfo {
return nil
}

View file

@ -31,7 +31,7 @@ func (t *transferTable) transfer(tx *transferTx) {
m, ok := t.txs[from]
if !ok {
if m, ok = t.txs[to]; ok {
from, to = to, from
to = from // ignore `from = to` swap because `from` doesn't require
tx.amount.Neg(tx.amount)
} else {
m = make(map[string]*transferTx, 1)