Skip to content

Commit

Permalink
Auto-format source code
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions Autoformatter authored and simonrozsival committed Jan 22, 2024
1 parent e9dd56f commit bd98ddd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private TypePair FindImageSourceToImageSourceServiceTypeMapping(Type type)
}

private static TypePair SelectBestMatch(List<TypePair> matches, Type type)
{
{
if (matches.Count == 0)
{
throw new InvalidOperationException($"Unable to find any configured {nameof(IImageSource)} corresponding to {type.Name}.");
Expand All @@ -60,8 +60,8 @@ private static TypePair SelectBestMatch(List<TypePair> matches, Type type)
var bestImageSourceServiceMatch = matches[0].ImageSourceService;

for (int i = 1; i < matches.Count; i++)
{
var (imageSource, imageSourceService) = matches[i];
{
var (imageSource, imageSourceService) = matches[i];

if (!bestImageSourceMatch.IsAssignableFrom(imageSource) && !imageSource.IsAssignableFrom(bestImageSourceMatch))
{
Expand Down

0 comments on commit bd98ddd

Please sign in to comment.