Skip to content

Commit 4a58bf4

Browse files
committed
update-dependency-tables: Fixed one bad assert
Signed-off-by: Ole Herman Schumacher Elgesem <[email protected]>
1 parent 43d3722 commit 4a58bf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cfengine_cli/deptool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,13 +437,13 @@ def updated_deps_markdown_table(self, refs):
437437
note = ""
438438
else:
439439
note = note.group(1)
440+
assert note is not None
440441
if in_hub:
441442
dep = re.sub("-hub$", "", dep)
442-
assert note is not None
443443
row = (
444444
["[%s](%s)" % (dep_title, url)]
445445
+ [deps_dict[dep][ref] for ref in refs]
446-
+ ([note] if has_notes else [])
446+
+ ([note] if note is not None else [])
447447
)
448448
assert column_widths is not None
449449
line = (

0 commit comments

Comments
 (0)