[sysadmin-bin: 41/168] Trivial style improvement to last commit



commit bcf4efca634de0152d9bbd63f84f20035b84cb1d
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Fri Mar 6 11:48:31 2009 -0500

    Trivial style improvement to last commit
    
    Coelesce common code from two branches of an if.

 gnome-post-receive-email |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gnome-post-receive-email b/gnome-post-receive-email
index f5bcf9a..e5f8387 100755
--- a/gnome-post-receive-email
+++ b/gnome-post-receive-email
@@ -243,9 +243,7 @@ def do_send_emails(email_in):
             # the email boundary for rationale
             if last_line.strip() != "":
                 os.write(current_file, last_line)
-                last_line = None
-            else:
-                last_line = None
+            last_line = None
             os.close(current_file)
             current_file = None
         else:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]