Skip to content

Commit

Permalink
Remove versionGuard error if versions are same.
Browse files Browse the repository at this point in the history
  • Loading branch information
olalonde committed Jul 30, 2015
1 parent 9c30e96 commit 1a5c49c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var bitcore = module.exports;
// module information
bitcore.version = 'v' + require('./package.json').version;
bitcore.versionGuard = function(version) {
if (version !== undefined) {
if (version !== bitcore.version) {
var message = 'More than one instance of bitcore found with versions: ' + bitcore.version +
' and ' + version + '. Please make sure to require bitcore and check that submodules do' +
' not also include their own bitcore dependency.';
Expand Down

0 comments on commit 1a5c49c

Please sign in to comment.