Skip to content

Commit

Permalink
Fix consider default value from TryGetValue
Browse files Browse the repository at this point in the history
  • Loading branch information
Viir committed Aug 11, 2023
1 parent 76e8ee5 commit d8b5e7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion implement/elm-time/RunServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ IFileStore buildProcessStoreFileStore()
file.Key.Skip(path.Count).ToImmutableList()).WhereNotNull(),
GetFileContentDelegate: path =>
{
files.TryGetValue(path, out var fileContent);
if (!files.TryGetValue(path, out var fileContent))
return null;
return fileContent;
}
Expand Down

0 comments on commit d8b5e7e

Please sign in to comment.