Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene committed Dec 19, 2024
1 parent a3cd9a0 commit db30e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/enclave/components/txpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func (t *TxPool) validateTxBasics(tx *types.Transaction, local bool) error {

chField := v.FieldByName("currentHead")
chFieldPtr := unsafe.Pointer(chField.UnsafeAddr())
ch, ok := reflect.NewAt(chField.Type(), chFieldPtr).Elem().Interface().(atomic.Pointer[types.Header])
ch, ok := reflect.NewAt(chField.Type(), chFieldPtr).Elem().Interface().(atomic.Pointer[types.Header]) //nolint:govet
if !ok {
t.logger.Crit("invalid mempool. should not happen")
}
Expand Down

0 comments on commit db30e9d

Please sign in to comment.