File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -84,17 +84,15 @@ export interface FsWriteOptions {
8484/**
8585 * fsync on a directory ensures there are no rename operations etc. which haven't been persisted to disk.
8686 */
87+ /* istanbul ignore next - This is impossible to test */
8788async function fsyncDir ( dirname : string ) : Promise < void > {
8889 // Windows will cause `EPERM: operation not permitted, fsync`
8990 // for directories, so don't do this
9091
91- /* istanbul ignore else */
9292 if ( process . platform === "win32" ) return ;
93- else {
94- const fd = await fs . open ( dirname , "r" ) ;
95- await fs . fsync ( fd ) ;
96- await fs . close ( fd ) ;
97- }
93+ const fd = await fs . open ( dirname , "r" ) ;
94+ await fs . fsync ( fd ) ;
95+ await fs . close ( fd ) ;
9896}
9997
10098export class JsonlDB < V extends unknown = unknown > {
You can’t perform that action at this time.
0 commit comments