Remove redundant code

This commit is contained in:
Veronica Berglyd Olsen
2024-10-23 10:31:27 +02:00
parent 16023676ea
commit db72f2a722
4 changed files with 6 additions and 30 deletions
+1 -1
View File
@@ -471,7 +471,7 @@ class ToDocX(Tokenizer):
def _generateFootnote(self, key: str) -> ET.Element | None:
"""Generate a footnote XML object."""
if self._footnotes.get(key):
if key in self._footnotes:
idx = len(self._usedNotes) + 1
run = ET.Element(_wTag("r"))
rPr = xmlSubElem(run, _wTag("rPr"))