Documentation for 'fs.appendFile' marks the 'callback' argument as optional, but the code would fail if not passed a callback function and an error has occurred.
The code defaulted to 'null' which was later called as a function in the case of an error.
Fixed to use (the already defined) 'makeCallback' function.
LGTM if it works as advertised. However:
Sorry about that. My fault for not searching the notes about contributing.
Will fix the commit message and sign the CLA now and take care of the test tomorrow.
fs: fix appendFile() error using null as function
Code defaulted to 'null' if a callback wasn't provided which would later be called as a function in the case of an error.
Changed to use 'makeCallback' like on 'fs.symlink'.
Can one of the admins verify this patch?
This is fixed in current releases.