@@ -530,7 +530,7 @@ function close(fd, callback = defaultCloseCallback) { |
530 | 530 | function closeSync(fd) { |
531 | 531 | fd = getValidatedFd(fd); |
532 | 532 |
|
533 | | - return binding.close(fd); |
| 533 | + binding.close(fd); |
534 | 534 | } |
535 | 535 |
|
536 | 536 | /** |
@@ -782,7 +782,7 @@ function readv(fd, buffers, position, callback) { |
782 | 782 | if (typeof position !== 'number') |
783 | 783 | position = null; |
784 | 784 |
|
785 | | - return binding.readBuffers(fd, buffers, position, req); |
| 785 | + binding.readBuffers(fd, buffers, position, req); |
786 | 786 | } |
787 | 787 |
|
788 | 788 | ObjectDefineProperty(readv, kCustomPromisifyArgsSymbol, |
@@ -858,7 +858,8 @@ function write(fd, buffer, offsetOrOptions, length, position, callback) { |
858 | 858 |
|
859 | 859 | const req = new FSReqCallback(); |
860 | 860 | req.oncomplete = wrapper; |
861 | | - return binding.writeBuffer(fd, buffer, offset, length, position, req); |
| 861 | + binding.writeBuffer(fd, buffer, offset, length, position, req); |
| 862 | + return; |
862 | 863 | } |
863 | 864 |
|
864 | 865 | validateStringAfterArrayBufferView(buffer, 'buffer'); |
@@ -879,7 +880,7 @@ function write(fd, buffer, offsetOrOptions, length, position, callback) { |
879 | 880 |
|
880 | 881 | const req = new FSReqCallback(); |
881 | 882 | req.oncomplete = wrapper; |
882 | | - return binding.writeString(fd, str, offset, length, req); |
| 883 | + binding.writeString(fd, str, offset, length, req); |
883 | 884 | } |
884 | 885 |
|
885 | 886 | ObjectDefineProperty(write, kCustomPromisifyArgsSymbol, |
@@ -969,7 +970,7 @@ function writev(fd, buffers, position, callback) { |
969 | 970 | if (typeof position !== 'number') |
970 | 971 | position = null; |
971 | 972 |
|
972 | | - return binding.writeBuffers(fd, buffers, position, req); |
| 973 | + binding.writeBuffers(fd, buffers, position, req); |
973 | 974 | } |
974 | 975 |
|
975 | 976 | ObjectDefineProperty(writev, kCustomPromisifyArgsSymbol, { |
@@ -1175,7 +1176,8 @@ function rmdir(path, options, callback) { |
1175 | 1176 | if (err === false) { |
1176 | 1177 | const req = new FSReqCallback(); |
1177 | 1178 | req.oncomplete = callback; |
1178 | | - return binding.rmdir(path, req); |
| 1179 | + binding.rmdir(path, req); |
| 1180 | + return; |
1179 | 1181 | } |
1180 | 1182 | if (err) { |
1181 | 1183 | return callback(err); |
@@ -1188,7 +1190,7 @@ function rmdir(path, options, callback) { |
1188 | 1190 | validateRmdirOptions(options); |
1189 | 1191 | const req = new FSReqCallback(); |
1190 | 1192 | req.oncomplete = callback; |
1191 | | - return binding.rmdir(path, req); |
| 1193 | + binding.rmdir(path, req); |
1192 | 1194 | } |
1193 | 1195 | } |
1194 | 1196 |
|
@@ -1294,7 +1296,7 @@ function fdatasync(fd, callback) { |
1294 | 1296 | */ |
1295 | 1297 | function fdatasyncSync(fd) { |
1296 | 1298 | fd = getValidatedFd(fd); |
1297 | | - return binding.fdatasync(fd); |
| 1299 | + binding.fdatasync(fd); |
1298 | 1300 | } |
1299 | 1301 |
|
1300 | 1302 | /** |
@@ -1319,7 +1321,7 @@ function fsync(fd, callback) { |
1319 | 1321 | */ |
1320 | 1322 | function fsyncSync(fd) { |
1321 | 1323 | fd = getValidatedFd(fd); |
1322 | | - return binding.fsync(fd); |
| 1324 | + binding.fsync(fd); |
1323 | 1325 | } |
1324 | 1326 |
|
1325 | 1327 | /** |
@@ -1877,7 +1879,7 @@ function unlink(path, callback) { |
1877 | 1879 | */ |
1878 | 1880 | function unlinkSync(path) { |
1879 | 1881 | path = pathModule.toNamespacedPath(getValidatedPath(path)); |
1880 | | - return binding.unlink(path); |
| 1882 | + binding.unlink(path); |
1881 | 1883 | } |
1882 | 1884 |
|
1883 | 1885 | /** |
@@ -2921,7 +2923,7 @@ realpath.native = (path, options, callback) => { |
2921 | 2923 | path = getValidatedPath(path); |
2922 | 2924 | const req = new FSReqCallback(); |
2923 | 2925 | req.oncomplete = callback; |
2924 | | - return binding.realpath(pathModule.toNamespacedPath(path), options.encoding, req); |
| 2926 | + binding.realpath(pathModule.toNamespacedPath(path), options.encoding, req); |
2925 | 2927 | }; |
2926 | 2928 |
|
2927 | 2929 | /** |
|