mirror of
https://github.com/enzet/map-machine.git
synced 2025-07-29 22:37:54 +02:00
Fix warnings.
This commit is contained in:
parent
b358e56223
commit
1be9906baf
6 changed files with 13 additions and 11 deletions
|
@ -12,12 +12,6 @@ SHORT_MESSAGE_MAX_LENGTH: int = 50
|
|||
MESSAGE_MAX_LENGTH: int = 72
|
||||
|
||||
|
||||
def error(message: str):
|
||||
"""Print error message and return exit code 1."""
|
||||
print(f"Error: {message}")
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def check_file(file_name: str) -> Optional[str]:
|
||||
"""
|
||||
Exit program with exit code 1 if commit message does not conform the rules.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue