mirror of
https://github.com/github/codeql.git
synced 2025-12-25 21:26:37 +01:00
8 lines
208 B
JavaScript
8 lines
208 B
JavaScript
function getLastLine(input) {
|
|
var lines = [], nextLine;
|
|
while ((nextLine = readNextLine(input)))
|
|
lines.push(nextLine);
|
|
if (!lines)
|
|
throw new Error("No lines!");
|
|
return lines[lines.length-1];
|
|
} |