Skip to content

Commit

Permalink
fix: use fs/promises instead of util.promisify (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys authored Apr 8, 2024
1 parent 98932b5 commit d9bf355
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/is.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// not an airtight indicator, but a good gut-check to even bother trying
const { promisify } = require('util')
const fs = require('fs')
const stat = promisify(fs.stat)
const { stat } = require('fs/promises')
module.exports = ({ cwd = process.cwd() } = {}) =>
stat(cwd + '/.git').then(() => true, () => false)

0 comments on commit d9bf355

Please sign in to comment.