joyent/node — pull request #3853 by crazyrobot (2012-08-10 20:08:08+00:00)
Title: Fix for fs.appendFile failure when a callback isn't passed and an is error returned

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.