Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Sep 23, 2023
1 parent 61b4a05 commit 8138151
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sphinx_js/typedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,7 @@ def to_ir(self, converter: Converter) -> tuple[ir.Attribute, Sequence["Node"]]:
# There's no signature to speak of for a getter: only a return type.
type = self.getSignature.type
else:
# ES6 says setters have exactly 1 param. I'm not sure if they
# can have multiple signatures, though.
assert isinstance(self.setSignature, Signature)
# ES6 says setters have exactly 1 param.
type = self.setSignature.parameters[0].type

res = ir.Attribute(
Expand Down

0 comments on commit 8138151

Please sign in to comment.