mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-30 13:51:53 +08:00
refactor: use Binding.TargetNullValue instead of empty class Models.CompareTargetWorktree
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user