~comcloudway/builds.sr.ht

1abb191b5eb77af7bc5ea58b88435c4796d47ab7 — Drew DeVault 3 years ago bd2e3d7
Don't add note suffix for empty note
1 files changed, 1 insertions(+), 1 deletions(-)

M buildsrht/blueprints/jobs.py
M buildsrht/blueprints/jobs.py => buildsrht/blueprints/jobs.py +1 -1
@@ 188,7 188,7 @@ def addsuffix(note: str, suffix: str) -> str:
    """
    maxlen = Job.note.prop.columns[0].type.length
    assert len(suffix) + 1 <= maxlen, f"Suffix was too long ({len(suffix)})"
    if note.endswith(suffix):
    if note.endswith(suffix) or not note:
        return note
    result = f"{note} {suffix}"
    if len(result) <= maxlen: