Skip to content

Commit

Permalink
satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
poszu committed Jul 12, 2024
1 parent f5be770 commit d1632db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion log/zap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"errors"
"testing"

"github.com/spacemeshos/go-spacemesh/log"
"github.com/stretchr/testify/require"
"go.uber.org/zap/zapcore"

"github.com/spacemeshos/go-spacemesh/log"
)

func Test_TrimmedErrorField(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion txs/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ func (c *Cache) LinkTXsWithProposal(
return nil
}
if err := addToProposal(db, lid, pid, tids); err != nil {
return fmt.Errorf("linking txs to proposal: %w, err")
return fmt.Errorf("linking txs to proposal: %w", err)
}
return c.updateLayer(lid, types.EmptyBlockID, tids)
}
Expand Down

0 comments on commit d1632db

Please sign in to comment.