Remove redundant code per review

This commit is contained in:
David Humphrey (:humph) david.humphrey@senecacollege.ca 2014-08-18 11:23:24 -04:00
parent 4b1f95c6c9
commit ed0137dece
1 changed files with 0 additions and 3 deletions

View File

@ -1703,7 +1703,6 @@ function readFile(fs, context, path, options, callback) {
function cleanup() { function cleanup() {
fs.releaseDescriptor(fd); fs.releaseDescriptor(fd);
ofd = null;
} }
fstat_file(context, ofd, function(err, fstatResult) { fstat_file(context, ofd, function(err, fstatResult) {
@ -1787,7 +1786,6 @@ function writeFile(fs, context, path, data, options, callback) {
replace_data(context, ofd, data, 0, data.length, function(err, nbytes) { replace_data(context, ofd, data, 0, data.length, function(err, nbytes) {
fs.releaseDescriptor(fd); fs.releaseDescriptor(fd);
ofd = null;
if(err) { if(err) {
return callback(err); return callback(err);
@ -1825,7 +1823,6 @@ function appendFile(fs, context, path, data, options, callback) {
write_data(context, ofd, data, 0, data.length, ofd.position, function(err, nbytes) { write_data(context, ofd, data, 0, data.length, ofd.position, function(err, nbytes) {
fs.releaseDescriptor(fd); fs.releaseDescriptor(fd);
ofd = null;
if(err) { if(err) {
return callback(err); return callback(err);