Forráskód Böngészése

Remove redundant Cast

Stepan Goremykin 2 éve
szülő
commit
779a22a76a

+ 0 - 2
MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs

@@ -491,7 +491,6 @@ namespace MediaBrowser.MediaEncoding.Encoder
 
 
             var found = Regex
             var found = Regex
                 .Matches(output, @"^\s\S{6}\s(?<codec>[\w|-]+)\s+.+$", RegexOptions.Multiline)
                 .Matches(output, @"^\s\S{6}\s(?<codec>[\w|-]+)\s+.+$", RegexOptions.Multiline)
-                .Cast<Match>()
                 .Select(x => x.Groups["codec"].Value)
                 .Select(x => x.Groups["codec"].Value)
                 .Where(x => required.Contains(x));
                 .Where(x => required.Contains(x));
 
 
@@ -520,7 +519,6 @@ namespace MediaBrowser.MediaEncoding.Encoder
 
 
             var found = Regex
             var found = Regex
                 .Matches(output, @"^\s\S{3}\s(?<filter>[\w|-]+)\s+.+$", RegexOptions.Multiline)
                 .Matches(output, @"^\s\S{3}\s(?<filter>[\w|-]+)\s+.+$", RegexOptions.Multiline)
-                .Cast<Match>()
                 .Select(x => x.Groups["filter"].Value)
                 .Select(x => x.Groups["filter"].Value)
                 .Where(x => _requiredFilters.Contains(x));
                 .Where(x => _requiredFilters.Contains(x));