File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1- using System ;
2- using System . Collections . Generic ;
3- using System . Linq ;
4- using System . Text ;
5- using System . Threading . Tasks ;
1+ using System . Collections . Generic ;
62
73namespace GithubWebpagesWebhook
84{
95 public static class CascadingStyleSheetHelper
106 {
11- static readonly Dictionary < string , string > SupportedLanguages = new Dictionary < string , string > ( )
7+ private static readonly Dictionary < string , string > SupportedLanguages = new Dictionary < string , string > ( )
128{
139 { "C#" , "language-csharp" } ,
1410 { "JavaScript" , "language-js" } ,
@@ -48,9 +44,9 @@ public static class CascadingStyleSheetHelper
4844
4945 public static bool TryGetLanguageCss ( string key , out string value )
5046 {
51- if ( SupportedLanguages . ContainsKey ( key ) )
47+ if ( SupportedLanguages . TryGetValue ( key , out var language ) )
5248 {
53- value = SupportedLanguages [ key ] ;
49+ value = language ;
5450 return true ;
5551 }
5652
You can’t perform that action at this time.
0 commit comments