mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
QL code and tests for C#/C++/JavaScript.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
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];
|
||||
}
|
||||
Reference in New Issue
Block a user