Skip to content

Commit

Permalink
fix: Add null check in the constructor of EnvReader
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDave1999 committed Jun 17, 2024
1 parent 43a4d42 commit d98b6e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Reader/EnvReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ public EnvReader()
/// Initializes a new instance of the <see cref="EnvReader" /> class with environment variables provider.
/// </summary>
/// <param name="provider">The environment variables provider.</param>
/// <exception cref="ArgumentNullException"><c>provider</c> is <c>null</c>.</exception>
public EnvReader(IEnvironmentVariablesProvider provider)
{
ThrowHelper.ThrowIfNull(provider, nameof(provider));
_envVars = provider;
}

Expand Down

0 comments on commit d98b6e8

Please sign in to comment.