Skip to content

Commit

Permalink
removed todo comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaWise committed Jan 15, 2019
1 parent 32d4e03 commit 91531b7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/backup.js
Expand Up @@ -4,7 +4,6 @@ const path = require('path');
const { promisify } = require('util');

const fsAccess = promisify(fs.access);
// const fsUnlink = promisify(fs.unlink);

module.exports = (createBackup) => {
return async function backup(filename, options) {
Expand All @@ -28,8 +27,6 @@ module.exports = (createBackup) => {
throw new TypeError('Cannot save backup because the directory does not exist');
});

// TODO: busy checks do not account for iterator-style busy

const newFile = await fsAccess(filename).then(() => false, () => true);
return runBackup(createBackup.call(this, attachedName, filename, newFile), handler || null);
};
Expand Down

0 comments on commit 91531b7

Please sign in to comment.