From 82d865896f14d29a04a598e34812ab47975f21cb Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 13 Aug 2015 07:03:24 -0400 Subject: Simplify the skip_covered logic --- coverage/summary.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'coverage/summary.py') diff --git a/coverage/summary.py b/coverage/summary.py index 7eb0f2fc..46aa4f5c 100644 --- a/coverage/summary.py +++ b/coverage/summary.py @@ -61,10 +61,7 @@ class SummaryReporter(Reporter): if self.config.skip_covered: # Don't report on 100% files. no_missing_lines = (nums.n_missing == 0) - if self.branches: - no_missing_branches = (nums.n_partial_branches == 0) - else: - no_missing_branches = True + no_missing_branches = (nums.n_partial_branches == 0) if no_missing_lines and no_missing_branches: continue -- cgit v1.2.1