Skip to content

Commit

Permalink
Disabled unnecessary stream check for release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
roryprimrose committed Mar 28, 2020
1 parent 707e229 commit 69bfdfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ModelBuilder/ResourceFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ private static string Read(string name)
var resourceName = "ModelBuilder.Resources." + name + ".txt";

using var stream = assembly.GetManifestResourceStream(resourceName);
#if DEBUG
if (stream == null)
{
var resourceNames = assembly.GetManifestResourceNames();
Expand All @@ -21,7 +21,7 @@ private static string Read(string name)

throw new InvalidOperationException(message);
}

#endif
using var reader = new StreamReader(stream);

return reader.ReadToEnd();
Expand Down

0 comments on commit 69bfdfd

Please sign in to comment.