Skip to content

Commit 8d5efc4

Browse files
committed
Cleanup
1 parent 8f71bef commit 8d5efc4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/keywords/validation.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,12 @@ const interpret = (url, instance, { ast, dynamicAnchors, errors, annotations, ou
8686
errors.push(...context.errors);
8787
} else {
8888
if (keywordHandler.annotation) {
89-
const outputUnit = {
89+
schemaAnnotations.push({
9090
keyword: keywordId,
9191
absoluteKeywordLocation: schemaUri,
9292
instanceLocation: Instance.uri(instance),
9393
annotation: keywordHandler.annotation(keywordValue)
94-
};
95-
schemaAnnotations.push(outputUnit);
94+
});
9695
}
9796
schemaAnnotations.push(...context.annotations);
9897
}

0 commit comments

Comments
 (0)