Skip to content

Commit

Permalink
Update src/type/validate.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie authored Dec 6, 2024
1 parent 1100177 commit ef0f892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/type/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@ function validateTypeImplementsInterface(

// Asserts that field is not deprecated unless interface field is
if (
ifaceField.deprecationReason == null &&
typeField.deprecationReason != null
typeField.deprecationReason != null &&
ifaceField.deprecationReason == null
) {
context.reportError(
`Interface field ${iface.name}.${fieldName} is not deprecated, so ` +
Expand Down

0 comments on commit ef0f892

Please sign in to comment.