mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
code_style: it is not necessary to use a function for simple assignment
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -74,7 +74,7 @@ namespace SourceGit.ViewModels
|
||||
{
|
||||
if (_isDiffMode)
|
||||
{
|
||||
SetViewContentAsDiff();
|
||||
ViewContent = new DiffContext(_repo, new(_revision), _viewContent as DiffContext);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -152,11 +152,6 @@ namespace SourceGit.ViewModels
|
||||
return new FileHistoriesRevisionFile(_file);
|
||||
}
|
||||
|
||||
private void SetViewContentAsDiff()
|
||||
{
|
||||
ViewContent = new DiffContext(_repo, new Models.DiffOption(_revision), _viewContent as DiffContext);
|
||||
}
|
||||
|
||||
private string _repo = null;
|
||||
private string _file = null;
|
||||
private Models.FileVersion _revision = null;
|
||||
|
||||
Reference in New Issue
Block a user