mirror of
https://github.com/lightbend/config.git
synced 2025-03-23 07:40:25 +08:00
Fix some indentation in PublicApiTest.scala
This commit is contained in:
parent
b9a8af5960
commit
67f5851ff2
@ -832,16 +832,16 @@ class PublicApiTest extends TestUtils {
|
||||
val old = System.getProperty("config.resource")
|
||||
System.setProperty("config.resource", "donotexists.conf")
|
||||
intercept[ConfigException.IO] {
|
||||
ConfigFactory.load(ConfigParseOptions.defaults().setAllowMissing(false))
|
||||
ConfigFactory.load(ConfigParseOptions.defaults().setAllowMissing(false))
|
||||
}
|
||||
|
||||
// cleanup properties
|
||||
Option(old).map{ v =>
|
||||
System.setProperty("config.resource", v)
|
||||
v
|
||||
}.orElse{
|
||||
System.clearProperty("config.resource")
|
||||
None
|
||||
Option(old).map { v =>
|
||||
System.setProperty("config.resource", v)
|
||||
v
|
||||
}.orElse {
|
||||
System.clearProperty("config.resource")
|
||||
None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user