Skip to content

Commit

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

Expand Down

0 comments on commit 43a4d42

Please sign in to comment.