Skip to content

Commit a5f7a7d

Browse files
committed
revert readdir or error
1 parent 8ef2df1 commit a5f7a7d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/readdir-or-error.ts

-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
// or the error that readdir() raised if not.
33
import { promises, readdirSync } from './fs.js'
44
const { readdir } = promises
5-
65
export const readdirOrError = (path: string) =>
76
readdir(path).catch(er => er as NodeJS.ErrnoException)
8-
97
export const readdirOrErrorSync = (path: string) => {
108
try {
119
return readdirSync(path)

0 commit comments

Comments
 (0)