Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make SearchCriteria.Not a pointer #505

Closed
wants to merge 1 commit into from
Closed

Make SearchCriteria.Not a pointer #505

wants to merge 1 commit into from

Conversation

emersion
Copy link
Owner

@emersion emersion commented Apr 7, 2023

No description provided.

@emersion emersion mentioned this pull request Apr 7, 2023
26 tasks
seqset.go Outdated Show resolved Hide resolved
@@ -65,7 +65,11 @@ func (criteria *SearchCriteria) And(other *SearchCriteria) {
criteria.Smaller = other.Smaller
}

criteria.Not = append(criteria.Not, other.Not...)
if criteria.Not != nil && other.Not != nil {
criteria.Not.And(other.Not)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incorrect. Should be Or.

@emersion emersion changed the title Add SearchCriteria.And, make SearchCriteria.Not a pointer Make SearchCriteria.Not a pointer Apr 30, 2023
@emersion
Copy link
Owner Author

Doesn't seem like this is worth the effort.

@emersion emersion closed this Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant