function checkConfigFile()

in pull-request-evaluator/lib/config/github.js [19:48]


function checkConfigFile() {

    let test;

    /* Check github.timeout */
    try {
        test = config.get('github.timeout');
    } catch (e) {
        console.log("No github.timeout set in config file");
        return false;
    }

    /* Check github.throttle */
    try {
        test = config.get('github.throttle');
    } catch (e) {
        console.log("No github.throttle set in config file");
        return false;
    }

    /* Check github.retry */
    try {
        test = config.get('github.retry');
    } catch (e) {
        console.log("No github.retry set in config file");
        return false;
    }

    return true;
}