Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlm committed Nov 19, 2024
1 parent 67e29c3 commit 8976e1d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Tests/Consolonia.Core.Tests/DrawingContextImplTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ public void DrawSolidRectangle()
ushort top = 0;
int width = 3;
int height = 3;
int right = left + width;
int bottom = top + height;
int right = width;
int bottom = height;
dc.DrawRectangle(Brushes.Blue, null, new Rect(left, top, width, height));

top++;

Check warning on line 334 in src/Tests/Consolonia.Core.Tests/DrawingContextImplTests.cs

View workflow job for this annotation

GitHub Actions / build

"[RedundantAssignment] Value assigned is not used in any execution path" on /home/runner/work/Consolonia/Consolonia/src/Tests/Consolonia.Core.Tests/DrawingContextImplTests.cs(334,13)
Expand Down Expand Up @@ -368,8 +368,8 @@ public void DrawSingleBox()
ushort top = 0;
int width = 3;
int height = 3;
int right = left + width;
int bottom = top + height;
int right = width;
int bottom = height;
dc.DrawRectangle(Brushes.Blue, new Pen(Brushes.Red), new Rect(left, top, width, height));

top++;
Expand Down Expand Up @@ -463,8 +463,8 @@ public void DrawDoubleBox()
ushort top = 0;
int width = 3;
int height = 3;
int right = left + width;
int bottom = top + height;
int right = width;
int bottom = height;
var brush = new LineBrush { Brush = Brushes.Red, LineStyle = LineStyle.DoubleLine };
dc.DrawRectangle(Brushes.Blue, new Pen(brush), new Rect(left, top, width, height));

Expand Down

0 comments on commit 8976e1d

Please sign in to comment.