@@ -51,8 +51,7 @@ public class TemplateTheme
5151 /// <exception cref="ArgumentNullException">When <paramref name="ansiStyles"/> is <code>null</code></exception>
5252 public TemplateTheme ( IReadOnlyDictionary < TemplateThemeStyle , string > ansiStyles )
5353 {
54- if ( ansiStyles is null )
55- throw new ArgumentNullException ( nameof ( ansiStyles ) ) ;
54+ if ( ansiStyles is null ) throw new ArgumentNullException ( nameof ( ansiStyles ) ) ;
5655 _styles = ansiStyles . ToDictionary ( kv => kv . Key , kv => new Style ( kv . Value ) ) ;
5756 }
5857
@@ -65,10 +64,8 @@ public TemplateTheme(IReadOnlyDictionary<TemplateThemeStyle, string> ansiStyles)
6564 /// <exception cref="ArgumentNullException">When <paramref name="ansiStyles"/> is <code>null</code></exception>
6665 public TemplateTheme ( TemplateTheme baseTheme , IReadOnlyDictionary < TemplateThemeStyle , string > ansiStyles )
6766 {
68- if ( baseTheme == null )
69- throw new ArgumentNullException ( nameof ( baseTheme ) ) ;
70- if ( ansiStyles is null )
71- throw new ArgumentNullException ( nameof ( ansiStyles ) ) ;
67+ if ( baseTheme == null ) throw new ArgumentNullException ( nameof ( baseTheme ) ) ;
68+ if ( ansiStyles is null ) throw new ArgumentNullException ( nameof ( ansiStyles ) ) ;
7269 _styles = new ( baseTheme . _styles ) ;
7370 foreach ( var kv in ansiStyles )
7471 _styles [ kv . Key ] = new ( kv . Value ) ;
@@ -79,4 +76,4 @@ internal Style GetStyle(TemplateThemeStyle templateThemeStyle)
7976 _styles . TryGetValue ( templateThemeStyle , out var style ) ;
8077 return style ;
8178 }
82- }
79+ }
0 commit comments