mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-22 20:37:19 -08:00
optimize<TextCompare>: return invalid result instead of throwing exceptions
This commit is contained in:
parent
e7a139542e
commit
22249876b5
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue