Skip to content

Commit

Permalink
Update stream_command.go
Browse files Browse the repository at this point in the history
  • Loading branch information
wallyqs authored Oct 7, 2024
1 parent 852934c commit aebfbb1
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 aebfbb1

Please sign in to comment.