1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00

fix: missing method

This commit is contained in:
Juan Picado @jotadeveloper 2018-02-24 22:24:24 +01:00
parent 11eefe15fc
commit 101dfe9c5d
No known key found for this signature in database
GPG Key ID: 18AC54485952D158

@ -4,7 +4,7 @@ import Path from 'path';
import logger from './logger';
import mkdirp from 'mkdirp';
import {folder_exists, file_exists} from './utils';
import {folder_exists, fileExists} from './utils';
const CONFIG_FILE = 'config.yaml';
const XDG = 'xdg';
@ -27,7 +27,7 @@ function findConfigFile(configPath) {
throw new Error('no configuration files can be proccesed');
}
const primaryConf = _.find(configPaths, (configLocation) => file_exists(configLocation.path));
const primaryConf = _.find(configPaths, (configLocation) => fileExists(configLocation.path));
if (_.isNil(primaryConf) === false) {
return primaryConf.path;
}