From: Andrew Engelbrecht <sudoman@ninthfloor.org>
Date: Tue, 21 Jul 2015 22:13:33 +0000 (-0400)
Subject: simplification of code
X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4615b15654036a0a7752bb570c153833c059248c;p=edward.git

simplification of code
---

diff --git a/edward b/edward
index 22cb7e1..36f2771 100755
--- a/edward
+++ b/edward
@@ -196,11 +196,7 @@ def scan_and_split (payload_piece, match_type, pattern):
         rest.piece_type         = payload_piece.piece_type
 
         more_pieces = scan_and_split(rest, match_type, pattern)
-
-        if more_pieces == None:
-            pieces = [beginning, match, rest]
-        else:
-            pieces = [beginning, match] + more_pieces
+        pieces = [beginning, match ] + more_pieces
 
     return pieces