mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-21 10:25:00 +00:00
code_style: general cleanup (#1428)
This commit is contained in:
parent
ae46728bbc
commit
d404f6dbe2
48 changed files with 123 additions and 240 deletions
|
@ -155,7 +155,7 @@ namespace SourceGit.Views
|
|||
|
||||
private void NavigateToHead(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (DataContext is ViewModels.Repository { CurrentBranch: { } } repo)
|
||||
if (DataContext is ViewModels.Repository { CurrentBranch: not null } repo)
|
||||
{
|
||||
repo.NavigateToCommit(repo.CurrentBranch.Head);
|
||||
e.Handled = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue