Skip to content

Commit

Permalink
Merge pull request #1265 from Grryum/deps-update
Browse files Browse the repository at this point in the history
tpolecat plugin update
  • Loading branch information
dos65 committed May 6, 2024
2 parents 59f285f + 3327cf6 commit d2e8897
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions modules/kernel/src/main/scala-3/tofu/internal/Interop.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,8 @@ object Interop {
)(path: Expr[String], args: List[quotes.reflect.Term], tps: quotes.reflect.TypeTree*): Expr[X] =
import quotes.reflect.*
try {
val sym = Symbol.requiredMethod(path.valueOrAbort)
val symExists =
try {
sym.tree
true
} catch { case _ => false }

if !symExists then report.errorAndAbort("Symbol does not exists")
val sym = Symbol.requiredMethod(path.valueOrAbort)
if !sym.exists then report.errorAndAbort("Symbol does not exists")
else
val methodIdent = Ident(sym.termRef)
val withTypes = methodIdent.appliedToTypeTrees(tps.toList)
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.5.0")

addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")

addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.0")
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.1")

addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")

Expand Down

0 comments on commit d2e8897

Please sign in to comment.