Skip to content

Commit

Permalink
Improve instantiation of mongo.json file.
Browse files Browse the repository at this point in the history
  • Loading branch information
marc0der committed Jan 22, 2013
1 parent fa40326 commit d806733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/server.groovy
Expand Up @@ -27,7 +27,7 @@ final VERTX_VERSION = '@VERTX_VERSION@'
// //


def config def config
def mongoJson = new File('mongo.json') def mongoJson = 'mongo.json' as File
if(mongoJson.exists()){ if(mongoJson.exists()){
config = new JsonObject(mongoJson.text).toMap() config = new JsonObject(mongoJson.text).toMap()
} else { } else {
Expand Down

0 comments on commit d806733

Please sign in to comment.