diff options
author | Luke Karrys <luke@lukekarrys.com> | 2021-11-04 00:57:22 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-11-04 17:10:34 +0300 |
commit | 32ccd3c2767a14198a1803f04e747ef848f7c938 (patch) | |
tree | bcce348ed5d856b320f6079c5b27df567314f6b3 /lib | |
parent | c640957b4349147ce9770f04d1b9d128ed39b226 (diff) |
chore: remove usage of unnecessary util.promisify
This is safe to do now that we've dropped node 10 support.
PR-URL: https://github.com/npm/cli/pull/3988
Credit: @lukekarrys
Close: #3988
Reviewed-by: @wraithgar
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils/reify-finish.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/utils/reify-finish.js b/lib/utils/reify-finish.js index 1c02b93a4..a9ac4c61f 100644 --- a/lib/utils/reify-finish.js +++ b/lib/utils/reify-finish.js @@ -1,8 +1,6 @@ const reifyOutput = require('./reify-output.js') const ini = require('ini') -const util = require('util') -const fs = require('fs') -const { writeFile } = fs.promises || { writeFile: util.promisify(fs.writeFile) } +const { writeFile } = require('fs').promises const {resolve} = require('path') const reifyFinish = async (npm, arb) => { |