From d77b94c13d1946925f2b1269d95a3beb639c0b02 Mon Sep 17 00:00:00 2001 From: Chase choi Date: Tue, 16 Jun 2015 14:56:04 -0100 Subject: [PATCH] remove duplicated allocations Summary: report_number is zero before the conditions Closes https://github.com/facebook/infer/pull/74 Github Author: Chase choi Test Plan: Imported from GitHub, without a `Test Plan:` line. --- infer/bin/inferTraceBugs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/infer/bin/inferTraceBugs b/infer/bin/inferTraceBugs index 4c9a9c832..b333416fe 100755 --- a/infer/bin/inferTraceBugs +++ b/infer/bin/inferTraceBugs @@ -187,13 +187,10 @@ class Selector(object): if len(self) > 1: report_number_str = raw_input( 'Choose report to display (default=0): ') - if report_number_str == '': - report_number = 0 - else: + if report_number_str != '': report_number = self.parse_report_number(report_number_str) elif len(self) == 1: print('Auto-selecting the only report.') - report_number = 0 return report_number