From fd9fd5e49e909ab7133b7ad4dcf1a7426e38a963 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 3 May 2020 11:42:18 +0000 Subject: [PATCH] Simplify --- git.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/git.py b/git.py index 8c6f0fb94..cf8ee8193 100644 --- a/git.py +++ b/git.py @@ -95,8 +95,7 @@ def gitAddFromHandle(patchStr: str, handle: str) -> str: if fromStr in patchStr: return patchStr - prevContentStr = patchStr - patchLines = prevContentStr.split('\n') + patchLines = patchStr.split('\n') patchStr = '' for line in patchLines: patchStr += line + '\n'