mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00:00
refactor: use Binding.TargetNullValue
instead of empty class Models.CompareTargetWorktree
This commit is contained in:
parent
6038fecab4
commit
0dee3a1969
3 changed files with 25 additions and 29 deletions
|
@ -71,8 +71,8 @@ namespace SourceGit.ViewModels
|
|||
public RevisionCompare(string repo, Models.Commit startPoint, Models.Commit endPoint)
|
||||
{
|
||||
_repo = repo;
|
||||
_startPoint = (object)startPoint ?? new Models.CompareTargetWorktree();
|
||||
_endPoint = (object)endPoint ?? new Models.CompareTargetWorktree();
|
||||
_startPoint = startPoint;
|
||||
_endPoint = endPoint;
|
||||
|
||||
Task.Run(Refresh);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue