mirror of https://github.com/sbt/sbt.git
Minor refacto
This commit is contained in:
parent
efb4f6c5c0
commit
ffd58b51b0
|
|
@ -434,24 +434,18 @@ object Resolution {
|
||||||
activation: Activation,
|
activation: Activation,
|
||||||
props: Map[String, String]
|
props: Map[String, String]
|
||||||
): Boolean =
|
): Boolean =
|
||||||
if (activation.properties.isEmpty)
|
activation.properties.nonEmpty &&
|
||||||
false
|
activation.properties.forall {
|
||||||
else
|
case (name, valueOpt) =>
|
||||||
activation
|
props.get(name).exists { v =>
|
||||||
.properties
|
valueOpt.forall { reqValue =>
|
||||||
.forall {case (name, valueOpt) =>
|
if (reqValue.startsWith("!"))
|
||||||
props
|
v != reqValue.drop(1)
|
||||||
.get(name)
|
else
|
||||||
.exists{ v =>
|
v == reqValue
|
||||||
valueOpt
|
|
||||||
.forall { reqValue =>
|
|
||||||
if (reqValue.startsWith("!"))
|
|
||||||
v != reqValue.drop(1)
|
|
||||||
else
|
|
||||||
v == reqValue
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
def userProfileActivation(userProfiles: Set[String])(
|
def userProfileActivation(userProfiles: Set[String])(
|
||||||
id: String,
|
id: String,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue