Fix a bug in ConfigWrapper.

This commit is contained in:
Jonathan Bernard 2016-03-27 14:00:58 -05:00
parent f3d95955c0
commit f4d0289eab

View File

@ -36,7 +36,7 @@ public class ConfigWrapper {
return null }
public String getHikariConfig() {
public HikariConfig getHikariConfig() {
Properties props = new Properties()
// 1. Check config properties for database config file
@ -71,7 +71,7 @@ public class ConfigWrapper {
private boolean tryLoadConfigFile(File configFile) {
if (!configFile.exists() || !configFile.isFile()) return false
return configFile.withInputStream { tryLoadConfig(is) } }
return configFile.withInputStream { tryLoadConfig(it) } }
private boolean tryLoadConfig(InputStream is) {
try {