Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
jodydonetti committed Apr 23, 2024
1 parent d290731 commit 7c9c558
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -912,8 +912,11 @@ public static IFusionCacheBuilder WithPlugins(this IFusionCacheBuilder builder,
if (builder is null)
throw new ArgumentNullException(nameof(builder));

if ((plugins?.Length ?? 0) > 0)
builder.Plugins.AddRange(plugins);
if (plugins is not null)
{
if (plugins.Length > 0)
builder.Plugins.AddRange(plugins);
}

return builder;
}
Expand Down

0 comments on commit 7c9c558

Please sign in to comment.