Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

Commit a89f234

Browse files
committed
Improve 'not' query by removing unnecessary filter level
1 parent 102a72e commit a89f234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/thp/scalligraph/query/Filter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ case class NotFilter(inputFilter: InputQuery[Traversal.Unk, Traversal.Unk]) exte
7777
traversal: Traversal.Unk,
7878
authContext: AuthContext
7979
): Traversal.Unk =
80-
traversal.filter(_.not(t => inputFilter(publicProperties, traversalType, t, authContext)))
80+
traversal.not(t => inputFilter(publicProperties, traversalType, t, authContext))
8181
}
8282

8383
object YesFilter extends InputQuery[Traversal.Unk, Traversal.Unk] {

0 commit comments

Comments
 (0)