Skip to content

Commit

Permalink
Simplify conditional logic: eliminate redundant if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
chakku committed Aug 10, 2024
1 parent 56f1b06 commit bbb4fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kgo/txn.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ retry:
"state_currently_committed", currentCommit,
)
s.cl.setOffsets(currentCommit, false)
} else if willTryCommit && endTxnErr == nil {
} else if willTryCommit {
s.cl.cfg.logger.Log(LogLevelInfo, "transact session successful, setting to newly committed state",
"tried_commit", willTryCommit,
"postcommit", postcommit,
Expand Down

0 comments on commit bbb4fc3

Please sign in to comment.