@@ -534,7 +534,7 @@ function close(fd, callback = defaultCloseCallback) {
534
534
function closeSync ( fd ) {
535
535
fd = getValidatedFd ( fd ) ;
536
536
537
- return binding . close ( fd ) ;
537
+ binding . close ( fd ) ;
538
538
}
539
539
540
540
/**
@@ -784,7 +784,7 @@ function readv(fd, buffers, position, callback) {
784
784
if ( typeof position !== 'number' )
785
785
position = null ;
786
786
787
- return binding . readBuffers ( fd , buffers , position , req ) ;
787
+ binding . readBuffers ( fd , buffers , position , req ) ;
788
788
}
789
789
790
790
ObjectDefineProperty ( readv , kCustomPromisifyArgsSymbol ,
@@ -860,7 +860,8 @@ function write(fd, buffer, offsetOrOptions, length, position, callback) {
860
860
861
861
const req = new FSReqCallback ( ) ;
862
862
req . oncomplete = wrapper ;
863
- return binding . writeBuffer ( fd , buffer , offset , length , position , req ) ;
863
+ binding . writeBuffer ( fd , buffer , offset , length , position , req ) ;
864
+ return ;
864
865
}
865
866
866
867
validateStringAfterArrayBufferView ( buffer , 'buffer' ) ;
@@ -881,7 +882,7 @@ function write(fd, buffer, offsetOrOptions, length, position, callback) {
881
882
882
883
const req = new FSReqCallback ( ) ;
883
884
req . oncomplete = wrapper ;
884
- return binding . writeString ( fd , str , offset , length , req ) ;
885
+ binding . writeString ( fd , str , offset , length , req ) ;
885
886
}
886
887
887
888
ObjectDefineProperty ( write , kCustomPromisifyArgsSymbol ,
@@ -971,7 +972,7 @@ function writev(fd, buffers, position, callback) {
971
972
if ( typeof position !== 'number' )
972
973
position = null ;
973
974
974
- return binding . writeBuffers ( fd , buffers , position , req ) ;
975
+ binding . writeBuffers ( fd , buffers , position , req ) ;
975
976
}
976
977
977
978
ObjectDefineProperty ( writev , kCustomPromisifyArgsSymbol , {
@@ -1177,7 +1178,8 @@ function rmdir(path, options, callback) {
1177
1178
if ( err === false ) {
1178
1179
const req = new FSReqCallback ( ) ;
1179
1180
req . oncomplete = callback ;
1180
- return binding . rmdir ( path , req ) ;
1181
+ binding . rmdir ( path , req ) ;
1182
+ return ;
1181
1183
}
1182
1184
if ( err ) {
1183
1185
return callback ( err ) ;
@@ -1190,7 +1192,7 @@ function rmdir(path, options, callback) {
1190
1192
validateRmdirOptions ( options ) ;
1191
1193
const req = new FSReqCallback ( ) ;
1192
1194
req . oncomplete = callback ;
1193
- return binding . rmdir ( path , req ) ;
1195
+ binding . rmdir ( path , req ) ;
1194
1196
}
1195
1197
}
1196
1198
@@ -1296,7 +1298,7 @@ function fdatasync(fd, callback) {
1296
1298
*/
1297
1299
function fdatasyncSync ( fd ) {
1298
1300
fd = getValidatedFd ( fd ) ;
1299
- return binding . fdatasync ( fd ) ;
1301
+ binding . fdatasync ( fd ) ;
1300
1302
}
1301
1303
1302
1304
/**
@@ -1321,7 +1323,7 @@ function fsync(fd, callback) {
1321
1323
*/
1322
1324
function fsyncSync ( fd ) {
1323
1325
fd = getValidatedFd ( fd ) ;
1324
- return binding . fsync ( fd ) ;
1326
+ binding . fsync ( fd ) ;
1325
1327
}
1326
1328
1327
1329
/**
@@ -1888,7 +1890,7 @@ function unlink(path, callback) {
1888
1890
*/
1889
1891
function unlinkSync ( path ) {
1890
1892
path = pathModule . toNamespacedPath ( getValidatedPath ( path ) ) ;
1891
- return binding . unlink ( path ) ;
1893
+ binding . unlink ( path ) ;
1892
1894
}
1893
1895
1894
1896
/**
@@ -2929,7 +2931,7 @@ realpath.native = (path, options, callback) => {
2929
2931
path = getValidatedPath ( path ) ;
2930
2932
const req = new FSReqCallback ( ) ;
2931
2933
req . oncomplete = callback ;
2932
- return binding . realpath ( pathModule . toNamespacedPath ( path ) , options . encoding , req ) ;
2934
+ binding . realpath ( pathModule . toNamespacedPath ( path ) , options . encoding , req ) ;
2933
2935
} ;
2934
2936
2935
2937
/**
0 commit comments