@@ -79,15 +79,12 @@ public override BDictionary Parse(BencodeReader reader)
7979 }
8080 catch ( BencodeException ex )
8181 {
82- throw InvalidException (
83- $ "Could not parse dictionary value for the key '{ key } '. There needs to be a value for each key.",
84- ex , startPosition ) ;
82+ throw InvalidException ( $ "Could not parse dictionary value for the key '{ key } '. There needs to be a value for each key.", ex , startPosition ) ;
8583 }
8684
8785 if ( dictionary . ContainsKey ( key ) )
8886 {
89- throw InvalidException (
90- $ "The dictionary already contains the key '{ key } '. Duplicate keys are not supported.", startPosition ) ;
87+ throw InvalidException ( $ "The dictionary already contains the key '{ key } '. Duplicate keys are not supported.", startPosition ) ;
9188 }
9289
9390 dictionary . Add ( key , value ) ;
@@ -140,15 +137,12 @@ await reader.PeekCharAsync(cancellationToken).ConfigureAwait(false) != default)
140137 }
141138 catch ( BencodeException ex )
142139 {
143- throw InvalidException (
144- $ "Could not parse dictionary value for the key '{ key } '. There needs to be a value for each key.",
145- ex , startPosition ) ;
140+ throw InvalidException ( $ "Could not parse dictionary value for the key '{ key } '. There needs to be a value for each key.", ex , startPosition ) ;
146141 }
147142
148143 if ( dictionary . ContainsKey ( key ) )
149144 {
150- throw InvalidException (
151- $ "The dictionary already contains the key '{ key } '. Duplicate keys are not supported.", startPosition ) ;
145+ throw InvalidException ( $ "The dictionary already contains the key '{ key } '. Duplicate keys are not supported.", startPosition ) ;
152146 }
153147
154148 dictionary . Add ( key , value ) ;
0 commit comments