Skip to content

Commit

Permalink
Clean deadcode in FileKeyValueStore.js
Browse files Browse the repository at this point in the history
This fixes #FAB-5847

Promise.reject error object
when file exist, error is empty

Change-Id: Ibefdb6b167d2d1d6cd00cba2608b8638be6bbd36
Signed-off-by: Yuxiang LIU <david-khala@hotmail.com>
  • Loading branch information
davidkhala committed Aug 29, 2017
1 parent 4e437bd commit d698c57
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions fabric-client/lib/impl/FileKeyValueStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ var FileKeyValueStore = class extends api.KeyValueStore {
fs.mkdirs(self._dir, function (err) {
if (err) {
logger.debug('FileKeyValueStore.js - constructor, error creating directory, code: ' + err.code);
if (err.code == 'EEXIST') {
return resolve(self);
} else {
return reject(err.code);
}
return reject(err);
}
return resolve(self);
});
Expand Down

0 comments on commit d698c57

Please sign in to comment.