mirror of https://github.com/sbt/sbt.git
Cleanup Extracted
This commit is contained in:
parent
77abb9ee29
commit
a73aa97b2c
|
|
@ -8,7 +8,6 @@
|
|||
package sbt
|
||||
|
||||
import sbt.internal.{ Load, BuildStructure, Act, Aggregation, SessionSettings }
|
||||
import Project._
|
||||
import Scope.GlobalScope
|
||||
import Def.{ ScopedKey, Setting }
|
||||
import sbt.internal.util.complete.Parser
|
||||
|
|
@ -43,7 +42,7 @@ final case class Extracted(structure: BuildStructure,
|
|||
structure.data.get(inCurrent(key.scope), key.key)
|
||||
|
||||
private[this] def inCurrent[T](scope: Scope): Scope =
|
||||
if (scope.project == This) scope.copy(project = Select(currentRef)) else scope
|
||||
if (scope.project == This) scope in currentRef else scope
|
||||
|
||||
/**
|
||||
* Runs the task specified by `key` and returns the transformed State and the resulting value of the task.
|
||||
|
|
|
|||
Loading…
Reference in New Issue