Skip to content

Commit

Permalink
Lint, use Term.apply in map
Browse files Browse the repository at this point in the history
  • Loading branch information
valencik committed Nov 29, 2024
1 parent 8bc196c commit 0e6f6d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ case class QueryAnalyzer(
defaultAnalyzer.tokenize(t) match {
case Nil => Left(s"Error tokenizing Term '$t' during query analysis")
case q1 :: Nil => Right(Term(q1))
case q1 :: q2 :: tail => Right(Or(Term(q1), Term(q2), tail.map(Term)))
case q1 :: q2 :: tail => Right(Or(Term(q1), Term(q2), tail.map(Term.apply)))
}
case Phrase(p) =>
defaultAnalyzer.tokenize(p) match {
Expand Down

0 comments on commit 0e6f6d1

Please sign in to comment.