mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-01-05 23:30:02 +01:00
(refs #1297)Bugfix
This commit is contained in:
@@ -46,7 +46,7 @@ object DatabaseConfig {
|
||||
lazy val maximumPoolSize : Option[Int] = getOptionValue("db.maximumPoolSize" , config.getInt)
|
||||
|
||||
private def getOptionValue[T](path: String, f: String => T): Option[T] = {
|
||||
if(config.hasPath(path)) None else Some(f(path))
|
||||
if(config.hasPath(path)) Some(f(path)) else None
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user