Skip to content

Commit

Permalink
Make availableLanguageCodes readonly
Browse files Browse the repository at this point in the history
Resolves IDE0044 style rule
  • Loading branch information
Stevoisiak committed Jan 19, 2021
1 parent 3b9dc22 commit 02c30d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ModAssistant/Classes/Languages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Languages
public static string LoadedLanguage { get; private set; }
public static List<CultureInfo> LoadedLanguages { get => availableCultures.ToList(); }
public static bool FirstRun = true;
private static string[] availableLanguageCodes = { "de", "en", "fr", "it", "ko", "nb", "nl", "ru", "sv", "zh" };
private static readonly string[] availableLanguageCodes = { "de", "en", "fr", "it", "ko", "nb", "nl", "ru", "sv", "zh" };
private static IEnumerable<CultureInfo> availableCultures;

public static void LoadLanguages()
Expand Down

0 comments on commit 02c30d5

Please sign in to comment.