{"size": 258, "ext": "js", "max_stars_repo_path": "src/resolve/either.js", "max_stars_repo_name": "mwiencek/yarb", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/resolve/either.js", "max_issues_repo_name": "mwiencek/yarb", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/resolve/either.js", "max_forks_repo_name": "mwiencek/yarb", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.4285714286, "max_line_length": 44, "alphanum_fraction": 0.4302325581}
'use strict';

module.exports = function either(cb, next) {
    return function (err, result) {
        if (err) {
            cb(err, null);
        } else if (result) {
            cb(null, result);
        } else {
            next();
        }
    };
};
