Skip to content

Commit

Permalink
Omit nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewgdewar committed Jan 2, 2025
1 parent 499155d commit 9d537b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dao/module_streams.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (r *moduleStreamsImpl) SearchSnapshotModuleStreams(ctx context.Context, org
request.RpmNames = []string{}
}

if request.UUIDs == nil || len(request.UUIDs) == 0 {
if len(request.UUIDs) == 0 {
return []api.SearchModuleStreams{}, &ce.DaoError{
BadValidation: true,
Message: "must contain at least 1 snapshot UUID",
Expand Down

0 comments on commit 9d537b7

Please sign in to comment.