Patchwork [1,of,7] run-tests: remove unnecessary variable initialisation

login
register
mail settings
Submitter Simon Heimberg
Date Feb. 13, 2014, 10:36 p.m.
Message ID <be8f06e69f033b982017.1392331015@lapsasi>
Download mbox | patch
Permalink /patch/3644/
State Accepted
Commit c230dba6641212a1e220a6db69c696bdbf5fbf2e
Headers show

Comments

Simon Heimberg - Feb. 13, 2014, 10:36 p.m.
# HG changeset patch
# User Simon Heimberg <simohe@besonet.ch>
# Date 1392272968 -3600
#      Thu Feb 13 07:29:28 2014 +0100
# Node ID be8f06e69f033b982017c48eb999a089e695875e
# Parent  da64679bfc8a761cacb5976efba411362c8bc51e
run-tests: remove unnecessary variable initialisation

ret is always set before it is used, so remove ret = 0

Patch

diff -r da64679bfc8a -r be8f06e69f03 tests/run-tests.py
--- a/tests/run-tests.py	Thu Feb 13 13:08:50 2014 +0100
+++ b/tests/run-tests.py	Thu Feb 13 07:29:28 2014 +0100
@@ -778,7 +778,6 @@ 
 
     pos = -1
     postout = []
-    ret = 0
     for l in output:
         lout, lcmd = l, None
         if salt in l: