-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
first_where false positive when using with Realm Result container #1930
Comments
.first(where:)
over .filter { }.first
in collections. (first_where)
Can you please fill out the issue template? It's hard to understand what you're actually reporting. |
// This triggers a warning: |
Ok, please update the issue template with that so this issue can be understandable for contributors who land here. |
@abagmut I can totally understand what this is about and this should of course be fixed. I came across this, too, when using Realm } else if let pauseToSplit = timeTracker.pauses.filter("beginDate < %@ AND endDate > %@", beginDate, endDate).first { |
Note that the whitelist does not work in cases in which you call a function that returns an realm.objects(Model.self).filter(Model.predicate(x: x, y: y)).first Also note that this issue should also be fixed for the @dschee could you reopen this issue, or should I file a new one? |
Please file a new issue to track that. |
We may choose to not fix it though since we won't be able to tell if the reference produces an NSPredicate or a closure. |
The text was updated successfully, but these errors were encountered: