Skip to content

Commit

Permalink
fix logical expression
Browse files Browse the repository at this point in the history
  • Loading branch information
mtache committed Jul 7, 2023
1 parent 48ce1b4 commit 3f651f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anta/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def update_progress(cls) -> None:
"""
Update progress bar for all AntaTest objects if it exists
"""
if cls.progress and cls.nrfu_task is not None:
if cls.progress and (cls.nrfu_task is not None):
cls.progress.update(cls.nrfu_task, advance=1)

@abstractmethod
Expand Down

0 comments on commit 3f651f5

Please sign in to comment.