Skip to content

Commit

Permalink
Merge pull request #22 from Ellerbach/fix-doc-translator
Browse files Browse the repository at this point in the history
Fixed length test in DocLanguageTranslator
  • Loading branch information
mtirionMSFT authored Jan 31, 2023
2 parents 20221fd + 03d9e8f commit 7f84504
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.x
fetch-depth: 0

# Loop through all the solutions in src and restore, build & test
- name: Restore, build & test
Expand Down
2 changes: 1 addition & 1 deletion src/DocLanguageTranslator/MarkdownTransformRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public MarkdownTransformRenderer(TextWriter writer, string originalMarkdown)
/// <returns>The block text.</returns>
public string TakeNext(int length)
{
if (length == 0)
if (length <= 0)
{
return null;
}
Expand Down

0 comments on commit 7f84504

Please sign in to comment.