Skip to content

Commit df88bfc

Browse files
committed
making the compiler linter happy again
1 parent c7d54b6 commit df88bfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/steps/validate-model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import * as model from '../model/metamodel'
2121
import { ValidationErrors } from '../validation-errors'
2222
import { JsonSpec } from '../model/json-spec'
2323
import assert from 'assert'
24-
import { ResponseException, TypeName } from '../model/metamodel'
24+
import { TypeName } from '../model/metamodel'
2525

2626
enum TypeDefKind {
2727
type,
@@ -498,7 +498,7 @@ export default async function validateModel (apiModel: model.Model, restSpec: Ma
498498
throw new Error(`Unknown kind: ${typeDef.body.kind}`)
499499
}
500500

501-
if (typeDef.exceptions) {
501+
if (typeDef.exceptions != null) {
502502
for (const ex of typeDef.exceptions) {
503503
switch (ex.body.kind) {
504504
case 'properties':

0 commit comments

Comments
 (0)