Skip to content

Commit

Permalink
Fix length check for bloat compare results. (#3048)
Browse files Browse the repository at this point in the history
compare_results is a list, so len(compare_results) is the right way to
test its length.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Oct 6, 2020
1 parent 3e606de commit 1462780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/helpers/bloat_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def sendFileAsPrComment(job_name, filename, gh_token, gh_repo, gh_pr_number,

comment.delete()

if compare_results.len() == 0:
if len(compare_results) == 0:
logging.info('No results to report')
return

Expand Down

0 comments on commit 1462780

Please sign in to comment.