Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKotsenas committed Dec 20, 2024
1 parent 858be62 commit fb05939
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Common/EnumerableExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Diagnostics.CodeAnalysis;

namespace Moq.Analyzers.Common;
namespace Moq.Analyzers.Common;

internal static class EnumerableExtensions
{
Expand All @@ -19,7 +17,6 @@ internal static class EnumerableExtensions
/// <inheritdoc cref="DefaultIfNotSingle{TSource}(IEnumerable{TSource}, Func{TSource, bool})"/>
/// <param name="source">The collection to enumerate.</param>
/// <param name="predicate">A function to test each element for a condition.</param>
[SuppressMessage("Performance", "ECS0900:Minimize boxing and unboxing", Justification = "Should revisit. Suppressing for now to unblock refactor.")]
public static TSource? DefaultIfNotSingle<TSource>(this ImmutableArray<TSource> source, Func<TSource, bool> predicate)
{
return source.AsEnumerable().DefaultIfNotSingle(predicate);

Check failure on line 22 in src/Common/EnumerableExtensions.cs

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Check failure on line 22 in src/Common/EnumerableExtensions.cs

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Check failure on line 22 in src/Common/EnumerableExtensions.cs

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Check failure on line 22 in src/Common/EnumerableExtensions.cs

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Check failure on line 22 in src/Common/EnumerableExtensions.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Check failure on line 22 in src/Common/EnumerableExtensions.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Check failure on line 22 in src/Common/EnumerableExtensions.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Check failure on line 22 in src/Common/EnumerableExtensions.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Expand Down

0 comments on commit fb05939

Please sign in to comment.