mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
QL code and tests for C#/C++/JavaScript.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
function getConverter(dir) {
|
||||
if (dir === 'c2f') {
|
||||
function converter(c) {
|
||||
return c * 9/5 + 32;
|
||||
}
|
||||
} else {
|
||||
function converter(f) {
|
||||
return (f - 32) * 5/9;
|
||||
}
|
||||
}
|
||||
return converter;
|
||||
}
|
||||
Reference in New Issue
Block a user