From 4615b15654036a0a7752bb570c153833c059248c Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht <sudoman@ninthfloor.org> Date: Tue, 21 Jul 2015 18:13:33 -0400 Subject: [PATCH] simplification of code --- edward | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 -- 2.25.1