Permalink
Browse files

[minor] Fix whitespaces

  • Loading branch information...
1 parent 6ce0b7a commit 29eb5f905d2fa57906b475b891843872ff079ddd @pksunkara pksunkara committed Apr 14, 2012
View
@@ -22,7 +22,7 @@ require('pkginfo')(module, 'version');
fs.readdirSync(__dirname + '/nconf/stores').forEach(function (file) {
var store = file.replace('.js', ''),
name = common.capitalize(store);
-
+
nconf.__defineGetter__(name, function () {
return require('./nconf/stores/' + store)[name];
});
View
@@ -4,7 +4,7 @@
* (C) 2011, Nodejitsu Inc.
*
*/
-
+
var fs = require('fs'),
async = require('async'),
formats = require('./formats'),
@@ -15,7 +15,7 @@ var common = exports;
//
// ### function path (key)
// #### @key {string} The ':' delimited key to split
-// Returns a fully-qualified path to a nested nconf key.
+// Returns a fully-qualified path to a nested nconf key.
//
common.path = function (key) {
return key.split(':');
@@ -50,7 +50,7 @@ common.loadFiles = function (files, callback) {
function parseFile (file, next) {
fs.readFile(file, function (err, data) {
- return !err
+ return !err
? next(null, options.format.parse(data.toString()))
: next(err);
});
@@ -91,13 +91,13 @@ common.loadFilesSync = function (files) {
//
common.merge = function (objs) {
var store = new Memory();
-
+
objs.forEach(function (obj) {
Object.keys(obj).forEach(function (key) {
store.merge(key, obj[key]);
});
});
-
+
return store.store;
};
Oops, something went wrong.

0 comments on commit 29eb5f9

Please sign in to comment.