Skip to content

Commit

Permalink
Use proper method
Browse files Browse the repository at this point in the history
  • Loading branch information
nurhafiz committed May 4, 2024
1 parent cfe10c0 commit ae40570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Toimik.WarcProtocol.Tests/TestUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ public static async Task TestFile(
private static string RenameFileExtension(string path, string extension)
{
var slashIndex = path.LastIndexOf(Path.DirectorySeparatorChar);
var periodIndex = path.LastIndexOf(".");
var periodIndex = path.LastIndexOf('.');
var length = periodIndex - slashIndex;
var filename = path.Substring(slashIndex, length);
var directory = path[..slashIndex];
Expand Down

0 comments on commit ae40570

Please sign in to comment.