Skip to content

Commit

Permalink
Fix PathFinder.GetFile
Browse files Browse the repository at this point in the history
  • Loading branch information
Emik03 committed Apr 8, 2024
1 parent ca04004 commit 3d835fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wawa.IO/Source/PathFinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public static Maybe<string> GetFile(
) =>
new { FilePath = filePath, ModId = modId ?? Who }.Get(
static key => key.SuppressIO(
k => GetDirectory(k.FilePath).Value is { } directory ? Path.Combine(directory, key.ModId) : null
k => GetDirectory(k.ModId).Value is { } directory ? Path.Combine(directory, key.FilePath) : null
)
);

Expand Down

0 comments on commit 3d835fb

Please sign in to comment.