dominictarr / rc

The non-configurable configuration loader for lazy people.
Other
1.02k stars 97 forks source link

Don't add the same config file twice #46

Closed eush77 closed 9 years ago

eush77 commented 9 years ago

cc.find('.'+name+'rc') may return with ~/.apprc config file which has already been added before. This results in configs array containing the same file more than once.

This patch fixes it by adding a check to addConfigFile.

dominictarr commented 9 years ago

thanks, merged into 1.0.1