Skip to content

Commit

Permalink
If the message file does not exist, make the messageText an empty str…
Browse files Browse the repository at this point in the history
…ing (instead of null) (#682)
  • Loading branch information
adwitkow committed Sep 17, 2022
1 parent b33cc13 commit 77d6240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Common/Helpers/MessageAndPropertiesHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ static string ReadMessage()
{
if (!File.Exists(messageFilePath))
{
return null;
return string.Empty;
}

using (var reader = new StreamReader(messageFilePath))
Expand All @@ -272,7 +272,7 @@ static string ReadMessage()
catch (Exception)
{
}
return null;
return string.Empty;
}

private static void WriteFile(string path, string content)
Expand Down

0 comments on commit 77d6240

Please sign in to comment.