use correct var name

This commit is contained in:
Thomas Hobson 2021-04-25 15:11:32 +12:00
parent 6d2814880f
commit 30fa1d1425
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ module.exports.get_latest_runtime_matching_language_version = function(lang, ver
};
module.exports.get_runtime_by_name_and_version = function(runtime, ver){
return runtimes.find(rt => (rt.runtime == runtime || (rt.runtime === undefined && rt.language == lang)) && semver.satisfies(rt.version, ver));
return runtimes.find(rt => (rt.runtime == runtime || (rt.runtime === undefined && rt.language == runtime)) && semver.satisfies(rt.version, ver));
}
module.exports.load_package = Runtime.load_package;