Skip to content

Commit 1f58864

Browse files
committed
Remove superfluous variable
1 parent 7b41b5e commit 1f58864

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Doc/tools/check-epub.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33

44

55
def main() -> int:
6-
wrong_directory_msg = "Must run this script from the repo root"
76
if not Path("Doc").exists() or not Path("Doc").is_dir():
8-
raise RuntimeError(wrong_directory_msg)
7+
raise RuntimeError("Must run this script from the repo root")
98

109
with Path("Doc/epubcheck.txt").open(encoding="UTF-8") as f:
1110
warnings = [warning.split(" - ") for warning in f.read().splitlines()]

0 commit comments

Comments
 (0)