Skip to content

Commit

Permalink
Merge pull request #817 from ehsankalafchi/rename-variable
Browse files Browse the repository at this point in the history
Rename a variable
  • Loading branch information
xoofx authored Oct 1, 2024
2 parents dfa2c94 + b27ef11 commit 41bdb0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Markdig/Renderers/MarkdownObjectRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ public bool Accept(RendererBase renderer, Type objectType)

public virtual void Write(RendererBase renderer, MarkdownObject obj)
{
var htmlRenderer = (TRenderer)renderer;
var typedRenderer = (TRenderer)renderer;
var typedObj = (TObject)obj;

if (_tryWriters is not null && TryWrite(htmlRenderer, typedObj))
if (_tryWriters is not null && TryWrite(typedRenderer, typedObj))
{
return;
}

Write(htmlRenderer, typedObj);
Write(typedRenderer, typedObj);
}

private bool TryWrite(TRenderer renderer, TObject obj)
Expand Down

0 comments on commit 41bdb0f

Please sign in to comment.