diff --git a/src/SourceGit.csproj b/src/SourceGit.csproj index 8958b927..c1fb8a4a 100644 --- a/src/SourceGit.csproj +++ b/src/SourceGit.csproj @@ -37,12 +37,12 @@ - - - - + + + + + - diff --git a/src/Views/CommitRefsPresenter.cs b/src/Views/CommitRefsPresenter.cs index 21e506e2..f941d4a5 100644 --- a/src/Views/CommitRefsPresenter.cs +++ b/src/Views/CommitRefsPresenter.cs @@ -158,7 +158,7 @@ namespace SourceGit.Views IsTag = decorator.Type == Models.DecoratorType.Tag, }; - var geo = null as StreamGeometry; + StreamGeometry geo; switch (decorator.Type) { case Models.DecoratorType.CurrentBranchHead: @@ -176,7 +176,7 @@ namespace SourceGit.Views break; } - var drawGeo = geo.Clone(); + var drawGeo = geo!.Clone(); var iconBounds = drawGeo.Bounds; var translation = Matrix.CreateTranslation(-(Vector)iconBounds.Position); var scale = Math.Min(8.0 / iconBounds.Width, 8.0 / iconBounds.Height);