lib/load-config.js
function findFile (filename) {
    const file = configDirectory + '/' + filename
    if (fs.existsSync(file)) return file
    const defaultFile = defaultDirectory + '/' + filename
    if (fs.existsSync(defaultFile)) return defaultFile
    return null
  }
function findFile (filename) {
    const file = configDirectory + '/' + filename
    if (fs.existsSync(file)) return file
    const defaultFile = defaultDirectory + '/' + filename
    if (fs.existsSync(defaultFile)) return defaultFile
    return null
  }
function findFile ( filename ) { const file = configDirectory + '/' + filename if ( fs . existsSync ( file ) ) return file const defaultFile = defaultDirectory + '/' + filename if ( fs . existsSync ( defaultFile ) ) return defaultFile return null }
Try to find a config file.
Look first in the configDirectory and then fallback to the defaultDirectory.
If the file is still not found, return null.
Try to find a config file . Look first in the configDirectory and then fallback to the defaultDirectory . If the file is still not found return null .