mirror of
https://github.com/sbt/sbt.git
synced 2026-09-05 09:15:06 +02:00
Merge pull request #142 from indrajitr/deprecation-fixes
Remove deprecations and redundant code
This commit is contained in:
@@ -37,7 +37,7 @@ object Credentials
|
||||
if(path.exists)
|
||||
{
|
||||
val properties = read(path)
|
||||
def get(keys: List[String]) = keys.flatMap(properties.get).firstOption.toRight(keys.head + " not specified in credentials file: " + path)
|
||||
def get(keys: List[String]) = keys.flatMap(properties.get).headOption.toRight(keys.head + " not specified in credentials file: " + path)
|
||||
|
||||
List.separate( List(RealmKeys, HostKeys, UserKeys, PasswordKeys).map(get) ) match
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user