Skip to content

Commit 674a8c6

Browse files
committed
Lint
1 parent 51b87d0 commit 674a8c6

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

api/handlers/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func (b *BigInt) UnmarshalJSON(data []byte) error {
2727
}
2828

2929
func (b *BigInt) MarshalJSON() ([]byte, error) {
30-
return []byte(fmt.Sprintf("%s", b.String())), nil
30+
return []byte(b.String()), nil
3131
}
3232

3333
func JSONError(w http.ResponseWriter, err error, code int) {

chains/evm/message/confirmations.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ func (w *Watcher) wait(ctx context.Context, txHash common.Hash, requiredConfirma
125125
// minimalConfirmations calculates the minimal confirmations needed to wait for execution
126126
// of an order based on order size
127127
func (w *Watcher) minimalConfirmations(orderValue *big.Int) (uint64, error) {
128-
129128
buckets := slices.Collect(maps.Keys(w.confirmations))
130129
slices.Sort(buckets)
131130
for _, bucket := range buckets {

chains/evm/message/lifiEscrow.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ func (h *LifiEscrowMessageHandler) HandleMessage(m *message.Message) (*proposal.
112112
if err != nil {
113113
data.ErrChn <- err
114114
return nil, err
115-
116115
}
117116

118117
err = h.confirmationWatcher.WaitForOrderConfirmations(
@@ -239,7 +238,6 @@ func (h *LifiEscrowMessageHandler) verifyOrder(order *lifi.LifiOrder, borrowAmou
239238

240239
if order.GenericInputs[0].Amount.Cmp(borrowAmount) == -1 {
241240
return fmt.Errorf("order input is less than requested borrow amount")
242-
243241
}
244242

245243
return h.validator.Validate(order)

chains/evm/message/lifiEscrow_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ func (s *LifiEscrowMessageHandlerTestSuite) SetupTest() {
113113
s.mockOrderValidator,
114114
s.sigChn,
115115
)
116-
117116
}
118117

119118
func (s *LifiEscrowMessageHandlerTestSuite) Test_HandleMessage_OrderFetchingFails() {

0 commit comments

Comments
 (0)