Skip to content

Commit 3d2f708

Browse files
authored
fmt: correct lint/format (#1060)
1 parent 11b0432 commit 3d2f708

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

bridge/tfchain_bridge/pkg/bridge/withdraw.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,4 +238,4 @@ func (bridge *Bridge) handleBadWithdraw(ctx context.Context, withdraw subpkg.Wit
238238
Str("to", withdraw.Source.ToHexString())).
239239
Msgf("a mint has proposed with the target substrate address of %s", withdraw.Source.ToHexString())
240240
return bridge.subClient.RetrySetWithdrawExecuted(ctx, withdraw.ID)
241-
}
241+
}

bridge/tfchain_bridge/pkg/stellar/stellar.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ func (w *StellarWallet) processTransaction(tx hProtocol.Transaction) ([]MintEven
442442
}
443443

444444
creditedEffect := effect.(horizoneffects.AccountCredited)
445-
if creditedEffect.Asset.Code != asset[0] && creditedEffect.Asset.Issuer != asset[1] {
445+
if creditedEffect.Code != asset[0] && creditedEffect.Issuer != asset[1] {
446446
continue
447447
}
448448

@@ -458,7 +458,7 @@ func (w *StellarWallet) processTransaction(tx hProtocol.Transaction) ([]MintEven
458458
}
459459

460460
PaymentOperation := op.(operations.Payment)
461-
if PaymentOperation.To != w.config.StellarBridgeAccount || PaymentOperation.From == w.config.StellarBridgeAccount{
461+
if PaymentOperation.To != w.config.StellarBridgeAccount || PaymentOperation.From == w.config.StellarBridgeAccount {
462462
continue
463463
}
464464

@@ -563,14 +563,14 @@ func (w *StellarWallet) getHorizonClient() (*horizonclient.Client, error) {
563563
return true, nil
564564
}
565565

566-
if resp.StatusCode == 429 || (resp.StatusCode >= 500 && resp.StatusCode <= 599) {
567-
return true, nil
568-
}
566+
if resp.StatusCode == 429 || (resp.StatusCode >= 500 && resp.StatusCode <= 599) {
567+
return true, nil
568+
}
569569

570570
return false, nil
571571
}
572572

573-
client.HTTP = retryClient.StandardClient()
573+
client.HTTP = retryClient.StandardClient()
574574

575575
return client, nil
576576
}

0 commit comments

Comments
 (0)