Fixed ineffectual assignments (#7555)

Don't assign values we never use.
This commit is contained in:
Christian Muehlhaeuser authored and Lunny Xiao committed 2019-07-22 17:35:53 +08:00
1 parent 9a965035f0
commit b0cd3b8ab9
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -543,7 +543,7 @@ func ParsePatch(maxLines, maxLineCharacters, maxFiles int, reader io.Reader) (*D
// Get new file.
if strings.HasPrefix(line, cmdDiffHead) {
middle := -1
var middle int
// Note: In case file name is surrounded by double quotes (it happens only in git-shell).
// e.g. diff --git "a/xxx" "b/xxx"