Skip to content

Commit

Permalink
newer analysis version and null referene fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jinek committed Oct 21, 2024
1 parent d1cbe6b commit 5f0bd23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/editorconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ jobs:
working-directory: ./src

- name: Inspect code
uses: muno92/resharper_inspectcode@1.4.0
uses: muno92/resharper_inspectcode@1.12.0
with:
solutionPath: ./src/Consolonia.sln
exclude: "**Consolonia.GuiCS/**.*;**Consolonia.Gallery/**.*;**Example/**.*"
version: '2021.1.5'

- name: install-resharper
run: |
Expand Down
5 changes: 2 additions & 3 deletions src/Consolonia.Core/Drawing/DrawingContextImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ public void DrawGeometry(IBrush brush, IPen pen, IGeometryImpl geometry)
throw new NotImplementedException();
case ISceneBrush sceneBrush:
{
ISceneBrushContent sceneBrushContent = sceneBrush.CreateContent()!;
sceneBrushContent.Render(this, Matrix.Identity);

ISceneBrushContent sceneBrushContent = sceneBrush.CreateContent();
sceneBrushContent!.Render(this, Matrix.Identity);
return;
}
}
Expand Down

0 comments on commit 5f0bd23

Please sign in to comment.