diff --git a/ql/lib/codeql/actions/ast/internal/Ast.qll b/ql/lib/codeql/actions/ast/internal/Ast.qll index 57466225414..1589b18efb0 100644 --- a/ql/lib/codeql/actions/ast/internal/Ast.qll +++ b/ql/lib/codeql/actions/ast/internal/Ast.qll @@ -11,10 +11,7 @@ int numberOfLines(string text) { result = max(int i | exists(text.splitAt("\n", * Gets the length of each line in the StringValue . */ bindingset[text] -int lineLength(string text, int i) { - i in [0 .. numberOfLines(text)] and - result = text.splitAt("\n", i).length() + 1 -} +int lineLength(string text, int i) { result = text.splitAt("\n", i).length() + 1 } /** * Gets the sum of the length of the lines up to the given index. diff --git a/ql/lib/qlpack.yml b/ql/lib/qlpack.yml index 29a1796e182..a33cecb6fe0 100644 --- a/ql/lib/qlpack.yml +++ b/ql/lib/qlpack.yml @@ -2,7 +2,7 @@ library: true warnOnImplicitThis: true name: github/actions-all -version: 0.1.80 +version: 0.1.81 dependencies: codeql/util: ^1.0.1 codeql/yaml: ^1.0.1 diff --git a/ql/src/qlpack.yml b/ql/src/qlpack.yml index a1caa702790..6d1bc8634ba 100644 --- a/ql/src/qlpack.yml +++ b/ql/src/qlpack.yml @@ -1,7 +1,7 @@ --- library: false name: github/actions-queries -version: 0.1.80 +version: 0.1.81 groups: [actions, queries] suites: codeql-suites extractor: javascript