Skip to content

Commit

Permalink
refactor: code simplification for len()!=0
Browse files Browse the repository at this point in the history
  • Loading branch information
nerstak committed May 23, 2023
1 parent f213372 commit 6bda0fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def collect(self) -> None:

metric_family_id_metric_family = {}

if len(self._metrics_datas) != 0:
if len(self._metrics_datas):
if not self._disable_target_info:
if self._target_info is None:
attributes = {}
Expand Down

0 comments on commit 6bda0fd

Please sign in to comment.