mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 10:50:52 +08:00
optimize<TextCompare>: return invalid result instead of throwing exceptions
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user