diff --git a/src/main/scala/bitlap/sbt/analyzer/action/SbtDependencyAnalyzerGoToAction.scala b/src/main/scala/bitlap/sbt/analyzer/action/SbtDependencyAnalyzerGoToAction.scala index e43e110..09c19c6 100644 --- a/src/main/scala/bitlap/sbt/analyzer/action/SbtDependencyAnalyzerGoToAction.scala +++ b/src/main/scala/bitlap/sbt/analyzer/action/SbtDependencyAnalyzerGoToAction.scala @@ -27,7 +27,6 @@ final class SbtDependencyAnalyzerGoToAction extends DependencyAnalyzerGoToAction ) private val LOG = Logger.getInstance(classOf[SbtDependencyAnalyzerGoToAction]) - private var declaredDependencies: List[DeclaredDependency] = _ override def getNavigatable(e: AnActionEvent): Navigatable = Option(getDeclaredDependency(e)).flatMap { dependency => @@ -55,12 +54,7 @@ final class SbtDependencyAnalyzerGoToAction extends DependencyAnalyzerGoToAction val module = getParentModule(project, dependency) if (coordinates == null || module == null) return null - val declared = - if (declaredDependencies == null) { - declaredDependencies = DependencyUtils.getDeclaredDependency(module) - declaredDependencies - } else declaredDependencies - + val declared = DependencyUtils.getDeclaredDependency(module) declared .find(dc => if (