optimize<TextCompare>: return invalid result instead of throwing exceptions

This commit is contained in:
leo 2021-07-30 10:00:50 +08:00
parent e7a139542e
commit 22249876b5

View file

@ -260,7 +260,8 @@ namespace SourceGit.Models {
}
}
throw new System.Exception("SHOULD NEVER GET HERE");
rs.State = Edit.None;
return rs;
}
private static void AddChunk(List<Chunk> chunks, Dictionary<string, int> hashes, string data, int start) {