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,
|
||||
props: Map[String, String]
|
||||
): Boolean =
|
||||
if (activation.properties.isEmpty)
|
||||
false
|
||||
else
|
||||
activation
|
||||
.properties
|
||||
.forall {case (name, valueOpt) =>
|
||||
props
|
||||
.get(name)
|
||||
.exists{ v =>
|
||||
valueOpt
|
||||
.forall { reqValue =>
|
||||
if (reqValue.startsWith("!"))
|
||||
v != reqValue.drop(1)
|
||||
else
|
||||
v == reqValue
|
||||
}
|
||||
activation.properties.nonEmpty &&
|
||||
activation.properties.forall {
|
||||
case (name, valueOpt) =>
|
||||
props.get(name).exists { v =>
|
||||
valueOpt.forall { reqValue =>
|
||||
if (reqValue.startsWith("!"))
|
||||
v != reqValue.drop(1)
|
||||
else
|
||||
v == reqValue
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def userProfileActivation(userProfiles: Set[String])(
|
||||
id: String,
|
||||
|
|
|
|||
Loading…
Reference in New Issue