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

feat: added NOT IN filter #39

Merged
merged 1 commit into from
Feb 14, 2020
Merged

feat: added NOT IN filter #39

merged 1 commit into from
Feb 14, 2020

Conversation

geoffreybauduin
Copy link
Owner

Signed-off-by: Geoffrey Bauduin geoffrey.bauduin@ovhcloud.com

@coveralls
Copy link

coveralls commented Feb 14, 2020

Coverage Status

Coverage increased (+0.02%) to 74.577% when pulling 471e4fe on dev/gbauduin/not-in into 93d25b6 on master.

yaormfilter/stringfilter.go Outdated Show resolved Hide resolved
}
for idx, v := range values {
underlyingValue := tools.GetNonPtrValue(v)
if idx == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

you can directly declare t as the first array's value's type and then iterate from index 1

Copy link
Owner Author

Choose a reason for hiding this comment

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

Is it better now?

@geoffreybauduin geoffreybauduin force-pushed the dev/gbauduin/not-in branch 2 times, most recently from 478169a to 34505b7 Compare February 14, 2020 13:43
Signed-off-by: Geoffrey Bauduin <geoffrey.bauduin@ovhcloud.com>
@geoffreybauduin geoffreybauduin merged commit 3ccf064 into master Feb 14, 2020
@geoffreybauduin geoffreybauduin deleted the dev/gbauduin/not-in branch February 14, 2020 13:56
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.

3 participants