Skip to content

Commit 671d884

Browse files
authored
staticcheck error (#349)
the error is raised by staticcheck v0.5.1 Signed-off-by: Gabriele Santomaggio <g.santomaggio@gmail.com>
1 parent 4670503 commit 671d884

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/stream/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ func (c *Client) DeclareSubscriber(streamName string,
840840
return nil, fmt.Errorf("filter enabled but post filter is nil. Post filter must be set")
841841
}
842842

843-
if options.IsFilterEnabled() && (options.Filter.Values == nil || len(options.Filter.Values) == 0) {
843+
if options.IsFilterEnabled() && (len(options.Filter.Values) == 0) {
844844
return nil, fmt.Errorf("filter enabled but no values. At least one value must be set")
845845
}
846846

0 commit comments

Comments
 (0)