projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
798bace
)
configloader code styling
author
Darren
<darren@darrenwhitlen.com>
Tue, 25 Nov 2014 07:14:43 +0000
(07:14 +0000)
committer
Darren
<darren@darrenwhitlen.com>
Tue, 25 Nov 2014 07:14:43 +0000
(07:14 +0000)
server/helpers/configloader.js
patch
|
blob
|
blame
|
history
diff --git
a/server/helpers/configloader.js
b/server/helpers/configloader.js
index 7ae9daf82d160896682fcd893cd12d64056e4087..7d673f7e32f4527cf2616a7e2484dd1d45dd526a 100644
(file)
--- a/
server/helpers/configloader.js
+++ b/
server/helpers/configloader.js
@@
-1,6
+1,7
@@
module.exports = function () {
- var config = require('../configuration.js');
- var conf_switch = process.argv.indexOf('-c');
+ var config = require('../configuration.js'),
+ conf_switch = process.argv.indexOf('-c');
+
if (conf_switch !== -1) {
if (process.argv[conf_switch + 1]) {
return config.loadConfig(process.argv[conf_switch + 1]);
@@
-8,4
+9,4
@@
module.exports = function () {
}
return config.loadConfig();
-}
+}
;