Revert "merge the done callback into the main code"

This reverts commit c39bec8cc1.

This was committed with extra stuff by mistake
This commit is contained in:
Girish Ramakrishnan
2018-02-22 10:58:56 -08:00
parent 0e7e672dd2
commit e022dbf8a6
3 changed files with 31 additions and 32 deletions

View File

@@ -68,7 +68,7 @@ function remove(apiConfig, filename, callback) {
assert.strictEqual(typeof filename, 'string');
assert.strictEqual(typeof callback, 'function');
// Result: none. Should not error if file is not found
// Result: none
callback(new Error('not implemented'));
}
@@ -77,7 +77,7 @@ function removeDir(apiConfig, pathPrefix) {
assert.strictEqual(typeof apiConfig, 'object');
assert.strictEqual(typeof pathPrefix, 'string');
// Result: none. Should not error if dir is not found
// Result: none
var events = new EventEmitter();
process.nextTick(function () { events.emit('done', new Error('not implemented')); });
return events;