Skip to content
Browse files

path.existsSync is now called `fs.existsSync`

  • Loading branch information...
1 parent 320a5f3 commit 75b626f6848f2d895b681441f5c172c7d6027866 @shaunlee committed
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/locales.js
View
3 lib/locales.js
@@ -1,5 +1,4 @@
var fs = require('fs'),
- path = require('path'),
hash = require('./hash');
var _options = {
@@ -18,7 +17,7 @@ function load(ctx) {
if (typeof _locales[_options.lang] === 'undefined') {
var filename = _options.locales + '/' + _options.lang + '.json';
- if (path.existsSync(filename))
+ if (fs.existsSync(filename))
try {
var data = JSON.parse(fs.readFileSync(filename, 'utf8'));
_locales[_options.lang] = {};

0 comments on commit 75b626f

Please sign in to comment.
Something went wrong with that request. Please try again.