lib/utils.js
function cleanFile(pathToFile) {
  try {
    fs.unlinkSync(pathToFile);
  } catch (err) {
    switch (err.code) {
      case 'ENOENT':
        return;
      default:
        throw new Error(err);
    }
  }
}
function cleanFile(pathToFile) {
  try {
    fs.unlinkSync(pathToFile);
  } catch (err) {
    switch (err.code) {
      case 'ENOENT':
        return;
      default:
        throw new Error(err);
    }
  }
}
function cleanFile ( pathToFile ) { try { fs . unlinkSync ( pathToFile ) ; } catch ( err ) { switch ( err . code ) { case 'ENOENT' : return ; default : throw new Error ( err ) ; } } }
Deletes a file from the filesystem if it exists.
Does nothing if it doesn't do anything.
@param {string} pathToFile  path to file to delete
Deletes a file from the filesystem if it exists . Does nothing if it doesn t do anything .