From 0d7a15f1f1d9de9547627cb6cb53dea3f13f21ad Mon Sep 17 00:00:00 2001 From: anodar Date: Mon, 25 Sep 2023 19:08:31 +0200 Subject: [PATCH] Drop nil comparison since it's already checked --- arbnode/node.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arbnode/node.go b/arbnode/node.go index 912b404582..eb7ff5aca8 100644 --- a/arbnode/node.go +++ b/arbnode/node.go @@ -564,10 +564,6 @@ func StakerDataposter( dpCfg := func() *dataposter.DataPosterConfig { return &cfg.Staker.DataPoster } - addr := common.Address{}.String() - if transactOpts != nil { - addr = transactOpts.From.String() - } return dataposter.NewDataPoster( &dataposter.DataPosterOpts{ Database: db, @@ -577,7 +573,8 @@ func StakerDataposter( RedisLock: redisLock, Config: dpCfg, MetadataRetriever: mdRetriever, - RedisKey: addr + ".staker-data-poster.queue", + // transactOpts is non-nil, it's checked at the beginning. + RedisKey: transactOpts.From.String() + ".staker-data-poster.queue", }) }