File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11const path = require ( 'path' ) ;
22const childProcess = require ( 'child_process' ) ;
3- const { promises : fs } = require ( 'fs' ) ;
3+ const { promises : fs , constants : fsConstants } = require ( 'fs' ) ;
44const isWsl = require ( 'is-wsl' ) ;
55const isDocker = require ( 'is-docker' ) ;
66const defineLazyProperty = require ( 'define-lazy-prop' ) ;
@@ -33,7 +33,7 @@ const getWslDrivesMountPoint = (() => {
3333
3434 let isConfigFileExists = false ;
3535 try {
36- await fs . access ( configFilePath , fs . constants . F_OK ) ;
36+ await fs . access ( configFilePath , fsConstants . F_OK ) ;
3737 isConfigFileExists = true ;
3838 } catch { }
3939
@@ -171,7 +171,7 @@ const open = async (target, options) => {
171171 // Check if local `xdg-open` exists and is executable.
172172 let exeLocalXdgOpen = false ;
173173 try {
174- await fs . access ( localXdgOpenPath , fs . constants . X_OK ) ;
174+ await fs . access ( localXdgOpenPath , fsConstants . X_OK ) ;
175175 exeLocalXdgOpen = true ;
176176 } catch { }
177177
You can’t perform that action at this time.
0 commit comments