Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
clairemcginty committed May 3, 2024
1 parent 1299610 commit 623d72f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scalafix/rules/src/main/scala/fix/v0_14_0/FixQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ class FixQuery extends SemanticRule("FixQuery") {

import FixQuery._

private def isQuery(term: Tree)(implicit doc: SemanticDocument): Boolean = {
term.symbol.info.exists { info =>
info.overriddenSymbols.exists(HasQueryMatcher.matches)
}
}
private def isQuery(term: Tree)(implicit doc: SemanticDocument): Boolean =
term.symbol.info.exists(_.overriddenSymbols.exists(HasQueryMatcher.matches))

override def fix(implicit doc: SemanticDocument): Patch = {
doc.tree.collect {
Expand Down

0 comments on commit 623d72f

Please sign in to comment.