summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBoHong Li2017-03-04 17:02:57 +0800
committerBoHong Li2017-03-04 17:06:11 +0800
commit8f1c97f4a476ff6534ff1e809ed748cf92ba9288 (patch)
treef55d5c2e304f734f8f759ee546a1393517fd21c9 /lib
parentbbde79c7d7f958e2e9e599f7bd8e58a275137707 (diff)
Fixed Syntax Error
Diffstat (limited to 'lib')
-rw-r--r--lib/config.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/config.js b/lib/config.js
index 1e5838e8..4d2fbf74 100644
--- a/lib/config.js
+++ b/lib/config.js
@@ -9,7 +9,11 @@ var config = require(path.join(__dirname, '..', 'config.json'))[env];
var debug = process.env.DEBUG ? (process.env.DEBUG === 'true') : ((typeof config.debug === 'boolean') ? config.debug : (env === 'development'));
// Create function that reads docker secrets but fails fast in case of a non docker environment
-var handleDockerSecret = fs.existsSync('/run/secrets/') ? function(secret){return fs.existsSync('/run/secrets/' + secret) ? fs.readFileSync('/run/secrets/' + secret) : null;)} : function () {return null}
+var handleDockerSecret = fs.existsSync('/run/secrets/') ? function(secret) {
+ return fs.existsSync('/run/secrets/' + secret) ? fs.readFileSync('/run/secrets/' + secret) : null;
+} : function() {
+ return null
+};
// url
var domain = process.env.DOMAIN || process.env.HMD_DOMAIN || config.domain || '';