Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Commit 3b2c991

Browse files
Make all the arguments to the callback explicit for clarity.
1 parent 8f532a9 commit 3b2c991

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/tor.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,13 @@ class TorDaemon extends EventEmitter {
298298
// First, open the control port file.
299299
fs.open(torControlPortPath(), 'r', (err, fd) => {
300300
if (err) {
301-
return callback(err)
301+
return callback(err, null, null)
302302
}
303303

304304
// Get the mtime.
305305
fs.fstat(fd, (err, stat) => {
306306
if (err) {
307-
return callback(err)
307+
return callback(err, null, null)
308308
}
309309

310310
// Read up to 27 octets, the maximum we will ever need.
@@ -364,13 +364,13 @@ class TorDaemon extends EventEmitter {
364364
// First, open the control cookie file.
365365
fs.open(torControlCookiePath(), 'r', (err, fd) => {
366366
if (err) {
367-
return callback(err, null)
367+
return callback(err, null, null)
368368
}
369369

370370
// Get the mtime.
371371
fs.fstat(fd, (err, stat) => {
372372
if (err) {
373-
return callback(err, null)
373+
return callback(err, null, null)
374374
}
375375

376376
// Read up to 33 octets. We should need no more than 32, so 33

0 commit comments

Comments
 (0)