@@ -20,17 +20,20 @@ public class PresetRequestParser : IRequestParser
2020 {
2121 private readonly IDictionary < string , IDictionary < string , string > > presets ;
2222
23- public PresetRequestParser ( IOptions < PresetRequestParserOptions > options ) => this . presets = ParsePresets ( options . Value . Presets ) ;
23+ public PresetRequestParser ( IOptions < PresetRequestParserOptions > options ) =>
24+ this . presets = ParsePresets ( options . Value . Presets ) ;
2425
2526 public IDictionary < string , string > ParseRequestCommands ( HttpContext context )
2627 {
2728 var requestedPreset = context . Request . Query [ "preset" ] . ToString ( ) ;
2829 return this . presets . GetValueOrDefault ( requestedPreset ) ?? new Dictionary < string , string > ( ) ;
2930 }
3031
31- private static IDictionary < string , IDictionary < string , string > > ParsePresets ( IDictionary < string , string > unparsedPresets ) =>
32+ private static IDictionary < string , IDictionary < string , string > > ParsePresets (
33+ IDictionary < string , string > unparsedPresets ) =>
3234 unparsedPresets
33- . Select ( keyValue => new KeyValuePair < string , IDictionary < string , string > > ( keyValue . Key , ParsePreset ( keyValue . Value ) ) )
35+ . Select ( keyValue =>
36+ new KeyValuePair < string , IDictionary < string , string > > ( keyValue . Key , ParsePreset ( keyValue . Value ) ) )
3437 . ToDictionary ( keyValue => keyValue . Key , keyValue => keyValue . Value ) ;
3538
3639 private static IDictionary < string , string > ParsePreset ( string unparsedPresetValue )
@@ -41,6 +44,7 @@ private static IDictionary<string, string> ParsePreset(string unparsedPresetValu
4144 {
4245 transformed [ keyValue . Key ] = keyValue . Value . ToString ( ) ;
4346 }
47+
4448 return transformed ;
4549 }
4650 }
0 commit comments