@@ -39,25 +39,25 @@ public static Condition Parse(ParseNode node)
3939 switch ( node )
4040 {
4141 case MapNode mapNode :
42- {
43- var conditionValues = new Dictionary < string , Dictionary < string , StringOrStringList > > ( ) ;
44- foreach ( var conditionNode in mapNode )
4542 {
46- switch ( conditionNode . Value )
43+ var conditionValues = new Dictionary < string , Dictionary < string , StringOrStringList > > ( ) ;
44+ foreach ( var conditionNode in mapNode )
4745 {
48- case MapNode conditionValueNode :
49- conditionValues . Add ( conditionNode . Name , new Dictionary < string , StringOrStringList > ( conditionValueNode . Select ( x =>
50- new KeyValuePair < string , StringOrStringList > ( x . Name , StringOrStringList . Parse ( x . Value ) ) )
51- . ToDictionary ( x => x . Key , x => x . Value ) ) ) ;
52- break ;
53- default :
54- throw new ArgumentException ( $ "An error occured while parsing a { nameof ( Condition ) } node. " +
55- $ "AWS condition values should be one or more key value pairs.") ;
46+ switch ( conditionNode . Value )
47+ {
48+ case MapNode conditionValueNode :
49+ conditionValues . Add ( conditionNode . Name , new Dictionary < string , StringOrStringList > ( conditionValueNode . Select ( x =>
50+ new KeyValuePair < string , StringOrStringList > ( x . Name , StringOrStringList . Parse ( x . Value ) ) )
51+ . ToDictionary ( x => x . Key , x => x . Value ) ) ) ;
52+ break ;
53+ default :
54+ throw new ArgumentException ( $ "An error occured while parsing a { nameof ( Condition ) } node. " +
55+ $ "AWS condition values should be one or more key value pairs.") ;
56+ }
5657 }
57- }
5858
59- return new Condition ( conditionValues ) ;
60- }
59+ return new Condition ( conditionValues ) ;
60+ }
6161
6262 default :
6363 throw new ArgumentException ( $ "An error occured while parsing a { nameof ( Condition ) } node. " +
0 commit comments