Skip to content

Commit

Permalink
Fix missing callback error when calling fs.unlink.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwandrews committed Nov 29, 2018
1 parent ac9249d commit e09ea45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/favicons.js
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,9 @@ module.exports = function( grunt ) {
// Cleanup
if ( options.regular ) {
[ '16x16', '32x32', '48x48' ].forEach( function( size ) {
fs.unlink( path.join( f.dest, size + '.png' ));
fs.unlink( path.join( f.dest, size + '.png' ), function( error ) {
if ( !error ) console.error( error );
});
});
}
});
Expand Down

0 comments on commit e09ea45

Please sign in to comment.