Skip to content

Commit e4fa6ac

Browse files
committed
allow CA1827
1 parent dd931d9 commit e4fa6ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ private static void MergeKubeConfig(K8SConfiguration basek8SConfig, K8SConfigura
703703
private static IEnumerable<T> MergeLists<T>(IEnumerable<T> baseList, IEnumerable<T> mergeList,
704704
Func<T, string> getNameFunc)
705705
{
706-
if (mergeList != null && mergeList.Count() > 0)
706+
if (mergeList != null && mergeList.Any())
707707
{
708708
var mapping = new Dictionary<string, T>();
709709
foreach (var item in baseList)

0 commit comments

Comments
 (0)