Skip to content

Commit

Permalink
Drop nil comparison since it's already checked
Browse files Browse the repository at this point in the history
  • Loading branch information
anodar committed Sep 25, 2023
1 parent 502b7ac commit 0d7a15f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions arbnode/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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",
})
}

Expand Down

0 comments on commit 0d7a15f

Please sign in to comment.