Skip to content

Commit

Permalink
Fixed code to make the test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Feb 6, 2023
1 parent 83b4771 commit d64c9be
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/types/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,8 @@ function isReadonlyPropertyFromMappedType(

const { modifiersType } = type as { modifiersType?: ts.Type };

return /* modifiersType && */ isPropertyReadonlyInType(
modifiersType!,
name,
typeChecker
return (
modifiersType && isPropertyReadonlyInType(modifiersType, name, typeChecker)
);
}

Expand Down

0 comments on commit d64c9be

Please sign in to comment.