From f4d0289eab16375665a715decbc2958624dee9a1 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Sun, 27 Mar 2016 14:00:58 -0500 Subject: [PATCH] Fix a bug in ConfigWrapper. --- .../main/groovy/com/jdbernard/wdiwtlt/ConfigWrapper.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/groovy/com/jdbernard/wdiwtlt/ConfigWrapper.groovy b/core/src/main/groovy/com/jdbernard/wdiwtlt/ConfigWrapper.groovy index dac8917..1059f6f 100644 --- a/core/src/main/groovy/com/jdbernard/wdiwtlt/ConfigWrapper.groovy +++ b/core/src/main/groovy/com/jdbernard/wdiwtlt/ConfigWrapper.groovy @@ -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 {