Skip to content

Commit

Permalink
fix: Add null check in the constructor of EnvValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDave1999 committed Jun 17, 2024
1 parent d98b6e8 commit 7dc62f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Validator/EnvValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ public EnvValidator()
/// Initializes a new instance of the <see cref="EnvValidator" /> 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 EnvValidator(IEnvironmentVariablesProvider provider)
{
ThrowHelper.ThrowIfNull(provider, nameof(provider));
_configuration.EnvVars = provider;
}

Expand Down

0 comments on commit 7dc62f5

Please sign in to comment.