Skip to content

Commit

Permalink
Update state/recorder.go
Browse files Browse the repository at this point in the history
Co-authored-by: aaronbuchwald <[email protected]>
Signed-off-by: Tsachi Herman <[email protected]>
  • Loading branch information
tsachiherman and aaronbuchwald authored Oct 9, 2024
1 parent 267e13b commit b6bd4f2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions state/recorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ func (r *Recorder) checkState(ctx context.Context, key []byte) ([]byte, error) {
func (r *Recorder) Insert(ctx context.Context, key []byte, value []byte) error {
stringKey := string(key)

var stateKeyVal []byte
var err error
if stateKeyVal, err = r.checkState(ctx, key); err != nil {
stateKeyVal, err := r.checkState(ctx, key)
if err != nil {
return err
}

Expand Down

0 comments on commit b6bd4f2

Please sign in to comment.