Skip to content

Commit ec0d104

Browse files
Fix sonar issues
1 parent 4c1a6ba commit ec0d104

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

Engine/Protocol/Parser/Conversion/MethodConverter.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace GenHTTP.Engine.Protocol.Parser.Conversion
66
{
77

8-
internal class MethodConverter
8+
internal static class MethodConverter
99
{
1010

1111
internal static FlexibleRequestMethod ToRequestMethod(ReadOnlySequence<byte> value)

Engine/Protocol/Parser/RequestScanner.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ internal async PooledValueTask<RequestToken> Next(RequestBuffer buffer, bool for
4848
}
4949

5050
// did not recognize any tokens, probably due to missing input data
51-
if (forceRead == false)
51+
if (!forceRead)
5252
{
5353
return await Next(buffer, forceRead: true);
5454
}

Engine/Protocol/Parser/ScannerMode.cs

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
6-
7-
namespace GenHTTP.Engine.Protocol.Parser
1+
namespace GenHTTP.Engine.Protocol.Parser
82
{
93

104
internal enum ScannerMode

0 commit comments

Comments
 (0)