Skip to content

Commit 9b20cc0

Browse files
authored
Merge pull request #2156 from rwblair/fix/deno_close_deprecation
change how close is called on json files
2 parents 09222a7 + b3bcc7d commit 9b20cc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bids-validator/src/files/deno.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class BIDSFileDeno implements BIDSFile {
9898
const buf = new Uint8Array(size)
9999
await handle.seek(offset, Deno.SeekMode.Start)
100100
await handle.read(buf)
101-
Deno.close(handle.rid)
101+
handle.close()
102102
return buf
103103
}
104104

0 commit comments

Comments
 (0)