Skip to content

Commit be72ea3

Browse files
lint
1 parent f916b8e commit be72ea3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chains/heads/tracker.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,9 @@ func (t *tracker[HTH, S, ID, BHASH]) backfillLoop(ctx context.Context) {
401401

402402
func (t *tracker[HTH, S, ID, BHASH]) LatestSafeBlock(ctx context.Context) (safe HTH, err error) {
403403
if t.config.FinalityTagEnabled() {
404-
latestSafe, err := t.client.LatestSafeBlock(ctx)
405-
if err != nil {
406-
return latestSafe, fmt.Errorf("failed to get latest finalized block: %w", err)
404+
latestSafe, err2 := t.client.LatestSafeBlock(ctx)
405+
if err2 != nil {
406+
return latestSafe, fmt.Errorf("failed to get latest finalized block: %w", err2)
407407
}
408408

409409
if !latestSafe.IsValid() {

0 commit comments

Comments
 (0)