eth/tracers/native: remove unnecessary check #30071 (#1477)

This commit is contained in:
Daniel Liu 2025-09-13 10:40:18 +08:00 committed by GitHub
parent fd040ec0d7
commit a00d95bf1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -274,7 +274,6 @@ func flatFromNested(input *callFrame, traceAddress []int, convertErrs bool, ctx
} }
output = append(output, *frame) output = append(output, *frame)
if len(input.Calls) > 0 {
for i, childCall := range input.Calls { for i, childCall := range input.Calls {
childAddr := childTraceAddress(traceAddress, i) childAddr := childTraceAddress(traceAddress, i)
childCallCopy := childCall childCallCopy := childCall
@ -284,7 +283,6 @@ func flatFromNested(input *callFrame, traceAddress []int, convertErrs bool, ctx
} }
output = append(output, flat...) output = append(output, flat...)
} }
}
return output, nil return output, nil
} }