Permalink
Browse files

concat the env

  • Loading branch information...
1 parent 60040fe commit 3b0e51a3ac429d3aa6680a3b7648987cad9ca937 @substack committed Jul 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
@@ -15,7 +15,7 @@ module.exports = function (opts) {
var prefix = opts.prefix || 'config';
var files = opts.files ||
- (opts.env || []).map(function (e) {
+ [].concat(opts.env || []).map(function (e) {
return prefix + '.' + e + '.json'
}).concat(prefix + '.json')
;

0 comments on commit 3b0e51a

Please sign in to comment.