File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
csharp/autobuilder/Semmle.Autobuild.CSharp Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -42,16 +42,15 @@ public MissingXamarinSdkRule() :
42
42
43
43
public override void Fire ( DiagnosticClassifier classifier , Match match )
44
44
{
45
- if ( ! match . Groups . ContainsKey ( "sdkName" ) )
45
+ if ( ! match . Groups . TryGetValue ( "sdkName" , out var sdkName ) )
46
46
throw new ArgumentException ( "Expected regular expression match to contain sdkName" ) ;
47
47
48
- var sdkName = match . Groups [ "sdkName" ] . Value ;
49
48
var xamarinResults = classifier . Results . OfType < Result > ( ) . Where ( result =>
50
- result . SDKName . Equals ( sdkName )
49
+ result . SDKName . Equals ( sdkName . Value )
51
50
) ;
52
51
53
52
if ( ! xamarinResults . Any ( ) )
54
- classifier . Results . Add ( new Result ( sdkName ) ) ;
53
+ classifier . Results . Add ( new Result ( sdkName . Value ) ) ;
55
54
}
56
55
}
57
56
You can’t perform that action at this time.
0 commit comments