Skip to content

Commit

Permalink
fix: correct tests
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Jan 21, 2024
1 parent 031a165 commit 0d9c222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/jetstream/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func (c *Controller) processStreamObject(str *apis.Stream, jsm jsmClientFunc) (e
return err
}
updateOK := (strOK && !deleteOK && newGeneration)
createOK := (!strOK && !deleteOK) || (!deleteOK && newGeneration)
createOK := (!strOK && !deleteOK) || (!updateOK && !deleteOK && newGeneration)

switch {
case createOK:
Expand Down

0 comments on commit 0d9c222

Please sign in to comment.