Skip to content

Commit b1dcf76

Browse files
committed
code_style: it is not necessary to use a function for simple assignment
Signed-off-by: leo <longshuang@msn.cn>
1 parent 7bf78a9 commit b1dcf76

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/ViewModels/FileHistories.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private void RefreshViewContent()
7474
{
7575
if (_isDiffMode)
7676
{
77-
SetViewContentAsDiff();
77+
ViewContent = new DiffContext(_repo, new(_revision), _viewContent as DiffContext);
7878
return;
7979
}
8080

@@ -152,11 +152,6 @@ private async Task<object> GetRevisionFileContentAsync(Models.Object obj)
152152
return new FileHistoriesRevisionFile(_file);
153153
}
154154

155-
private void SetViewContentAsDiff()
156-
{
157-
ViewContent = new DiffContext(_repo, new Models.DiffOption(_revision), _viewContent as DiffContext);
158-
}
159-
160155
private string _repo = null;
161156
private string _file = null;
162157
private Models.FileVersion _revision = null;

0 commit comments

Comments
 (0)