mark constants as readonly

This commit is contained in:
Jack Baron 2020-02-02 08:13:23 +00:00
parent 519d03c0f3
commit d97b5c89e0
No known key found for this signature in database
GPG key ID: CD10BCEEC646C064
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ namespace ModAssistant
private const string ModelSaberURLPrefix = "https://modelsaber.com/files/";
private const string BeatSaverURLPrefix = "https://beatsaver.com";
private static string BeatSaberPath = App.BeatSaberInstallDirectory;
private static readonly string BeatSaberPath = App.BeatSaberInstallDirectory;
private const string CustomAvatarsFolder = "CustomAvatars";
private const string CustomSabersFolder = "CustomSabers";

View file

@ -8,7 +8,7 @@ namespace ModAssistant
{
class Updater
{
private static string APILatestURL = "https://api.github.com/repos/Assistant/ModAssistant/releases/latest";
private static readonly string APILatestURL = "https://api.github.com/repos/Assistant/ModAssistant/releases/latest";
private static Update LatestUpdate;
private static Version CurrentVersion;