Skip to content

Commit d9bf355

Browse files
authored
fix: use fs/promises instead of util.promisify (#180)
1 parent 98932b5 commit d9bf355

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/is.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// not an airtight indicator, but a good gut-check to even bother trying
2-
const { promisify } = require('util')
3-
const fs = require('fs')
4-
const stat = promisify(fs.stat)
2+
const { stat } = require('fs/promises')
53
module.exports = ({ cwd = process.cwd() } = {}) =>
64
stat(cwd + '/.git').then(() => true, () => false)

0 commit comments

Comments
 (0)