mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07: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