diff --git a/src/main/java/com/ljunggren/storm/StormRepository.java b/src/main/java/com/ljunggren/storm/StormRepository.java index 2218ba3..6c66f5f 100644 --- a/src/main/java/com/ljunggren/storm/StormRepository.java +++ b/src/main/java/com/ljunggren/storm/StormRepository.java @@ -46,11 +46,11 @@ return createContext(database); } - private Context createContext(Database connection) { - if (connection == null) { + private Context createContext(Database database) { + if (database == null) { return null; } - String name = connection.value(); + String name = database.value(); return new ContextFactory().getContext(name); }