Browse Source

lint brackets for single line if blocks

pull/1318/head
Chris Johnston 6 years ago
parent
commit
c252ec0b6d
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      src/Discord.Net.Rest/Entities/Messages/MessageHelper.cs

+ 0
- 4
src/Discord.Net.Rest/Entities/Messages/MessageHelper.cs View File

@@ -119,9 +119,7 @@ namespace Discord.Rest
if (blockMatch.Success) if (blockMatch.Success)
{ {
if (EnclosedInBlock(blockMatch)) if (EnclosedInBlock(blockMatch))
{
return true; return true;
}
// continue if the end of the current code was before the start of the tag // continue if the end of the current code was before the start of the tag
codeIndex += blockMatch.Groups[2].Index + blockMatch.Groups[2].Length; codeIndex += blockMatch.Groups[2].Index + blockMatch.Groups[2].Length;
if (codeIndex < index) if (codeIndex < index)
@@ -132,9 +130,7 @@ namespace Discord.Rest
if (inlineMatch.Success) if (inlineMatch.Success)
{ {
if (EnclosedInBlock(inlineMatch)) if (EnclosedInBlock(inlineMatch))
{
return true; return true;
}
// continue if the end of the current code was before the start of the tag // continue if the end of the current code was before the start of the tag
codeIndex += inlineMatch.Groups[2].Index + inlineMatch.Groups[2].Length; codeIndex += inlineMatch.Groups[2].Index + inlineMatch.Groups[2].Length;
if (codeIndex < index) if (codeIndex < index)


Loading…
Cancel
Save