We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4116ee commit 5e4b64aCopy full SHA for 5e4b64a
src/languageservice/services/gitlabciUtils.ts
@@ -20,9 +20,8 @@ export function findNodeFromPath(
20
for (const doc of docctx.documents) {
21
if (isMap(doc.internalDocument.contents)) {
22
let node: YAMLMap<unknown, unknown> = doc.internalDocument.contents;
23
- let i = 0;
24
// Follow path
25
- while (i < path.length) {
+ for (let i = 0; i < path.length; ++i) {
26
const target = node.items.find(({ key: key }) => key == path[i]);
27
if (target && i == path.length - 1) {
28
return [uri, target, doctxt];
@@ -31,7 +30,6 @@ export function findNodeFromPath(
31
30
} else {
32
break;
33
}
34
- ++i;
35
36
37
0 commit comments