Skip to content

Commit

Permalink
remove ++, inlining
Browse files Browse the repository at this point in the history
  • Loading branch information
Foretack committed Oct 7, 2023
1 parent d7489f7 commit a266b0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions MiniTwitch.Irc/Internal/Models/IrcMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public IrcMessage(ReadOnlyMemory<byte> memory)
}

int commandStartAddVal = this.HasUsername ? usernameEnd : usernameStart;
int commandStart = span[commandStartAddVal++..].IndexOf(space) + commandStartAddVal;
int commandStart = span[commandStartAddVal..].IndexOf(space) + commandStartAddVal + 1;
int commandEnd = span[commandStart..].IndexOf(space) + commandStart;
if (commandEnd - commandStart == -1)
{
Expand Down Expand Up @@ -129,7 +129,6 @@ public IrcMessage(ReadOnlyMemory<byte> memory)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public readonly string GetUsername() => TagHelper.GetString(this.Memory.Span[this.UsernameRange]);

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public readonly (string Content, bool Action) GetContent(bool maybeAction = false)
{
if (!this.HasMessageContent)
Expand Down

0 comments on commit a266b0f

Please sign in to comment.