Skip to content

Commit

Permalink
Merge pull request #1168 from nats-io/wallyqs-patch-1
Browse files Browse the repository at this point in the history
Update stream_command.go
  • Loading branch information
ripienaar authored Oct 8, 2024
2 parents 852934c + aebfbb1 commit 4da881f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/stream_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -3039,7 +3039,7 @@ func (c *streamCmd) purgeAction(_ *fisk.ParseContext) (err error) {
var req *api.JSApiStreamPurgeRequest
if c.purgeKeep > 0 || c.purgeSubject != "" || c.purgeSequence > 0 {
if c.purgeSequence > 0 && c.purgeKeep > 0 {
return fmt.Errorf("sequence and keep cannot be combined when purghing")
return fmt.Errorf("sequence and keep cannot be combined when purging")
}

req = &api.JSApiStreamPurgeRequest{
Expand Down

0 comments on commit 4da881f

Please sign in to comment.