Use fs.statSync instead of fs.existsSync (deprecated)

This commit is contained in:
Stefan 2016-05-16 16:51:12 +02:00
parent f49de0b61b
commit 835bca7967
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ var languages = require('languages4translatewiki')
, npm = require('npm')
, plugins = require('ep_etherpad-lite/static/js/pluginfw/plugins.js').plugins
, semver = require('semver')
, existsSync = semver.gt(process.version, '0.7.0') ? fs.existsSync : path.existsSync
, existsSync = fs.statSync || fs.existsSync || path.existsSync
;