Skip to content

Commit

Permalink
fix: use fs/promises instead of util.promisify
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Apr 8, 2024
1 parent 46192f5 commit 2dacb49
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 2dacb49

Please # to comment.