TS: Use const instead of let

This commit is contained in:
Asger F
2019-11-25 16:43:19 +00:00
parent 7a2edfbbf9
commit 8c3bd77d67

View File

@@ -30,7 +30,7 @@ export const none: PathNode | undefined = undefined;
export function getResult(sarif: sarif.Log, key: Result): sarif.Result | undefined {
if (sarif.runs.length === 0) return undefined;
if (sarif.runs[0].results === undefined) return undefined;
let results = sarif.runs[0].results;
const results = sarif.runs[0].results;
return results[key.resultIndex];
}