Skip to content

Commit cb3ed5c

Browse files
committed
Fix lint errs
1 parent 063ed1b commit cb3ed5c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compiler/src/model/utils.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ export function hoistRequestAnnotations (
625625
request: model.Request, jsDocs: JSDoc[], mappings: Record<string, model.Endpoint>, response: model.TypeName | null
626626
): void {
627627
const knownRequestAnnotations = [
628-
'rest_spec_name', 'behavior', 'class_serializer', 'index_privileges', 'cluster_privileges', 'doc_id', 'availability', 'doc_tag', `ext_doc_id`
628+
'rest_spec_name', 'behavior', 'class_serializer', 'index_privileges', 'cluster_privileges', 'doc_id', 'availability', 'doc_tag', 'ext_doc_id'
629629
]
630630
// in most of the cases the jsDocs comes in a single block,
631631
// but it can happen that the user defines multiple single line jsDoc.
@@ -754,8 +754,7 @@ export function hoistTypeAnnotations (type: model.TypeDefinition, jsDocs: JSDoc[
754754
const docUrl = docIds.find(entry => entry[0] === value.trim())
755755
assert(jsDocs, docUrl != null, `The @ext_doc_id '${value.trim()}' is not present in _doc_ids/table.csv`)
756756
type.extDocUrl = docUrl[1].replace(/\r/g, '')
757-
}
758-
else if (tag === 'codegen_names') {
757+
} else if (tag === 'codegen_names') {
759758
type.codegenNames = parseCommaSeparated(value)
760759
assert(jsDocs,
761760
type.kind === 'type_alias' && type.type.kind === 'union_of' && type.type.items.length === type.codegenNames.length,

0 commit comments

Comments
 (0)