Skip to content

Commit 5d8bc65

Browse files
committed
Rewrite a constant
Signed-off-by: Yves Bastide <[email protected]>
1 parent 5403eed commit 5d8bc65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RobotsTxt/RobotsMatcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void HandleUserAgent(int lineNum, ReadOnlySpan<byte> userAgent)
8282
}
8383
}
8484

85-
readonly byte[] _indexHtmBytes = Encoding.ASCII.GetBytes("/index.htm");
85+
readonly byte[] _indexHtmBytes = "/index.htm"u8.ToArray();
8686

8787
public void HandleAllow(int lineNum, ReadOnlySpan<byte> value)
8888
{

0 commit comments

Comments
 (0)