Skip to content

Commit d288f84

Browse files
committed
Fix approval path construction to use Path.Combine for cross-platform compatibility
1 parent 54282d5 commit d288f84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProgressOnderwijsUtils/ApprovalTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ static string ToApprovalPath(SourceLocation sourceLocation)
1111
{
1212
var filename = Path.GetFileNameWithoutExtension(sourceLocation.FilePath);
1313
var filedir = Path.GetDirectoryName(sourceLocation.FilePath);
14-
var approvalPath = $"{filedir}\\{filename}.{sourceLocation.MemberName}.approved.txt";
14+
var approvalPath = Path.Combine(filedir.AssertNotNull(), $"{filename}.{sourceLocation.MemberName}.approved.txt");
1515
return approvalPath;
1616
}
1717

0 commit comments

Comments
 (0)