Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 9f8e354

Browse files
committed
fixed translations previous "optimization"
1 parent b052035 commit 9f8e354

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Interop/TranslationProvider.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public TranslationProvider()
3030
Directory.CreateDirectory(_translationsDir);
3131
}
3232

33-
if (IsUpdateAvailable() != null)
33+
if (IsUpdateAvailable())
3434
{
3535
UpdateTranslations();
3636
}
@@ -193,7 +193,7 @@ public void UpdateTranslations()
193193
/// Compares the stored version of the translations release with the one from GitHub
194194
/// </summary>
195195
/// <returns>Whether there's an update available</returns>
196-
public bool? IsUpdateAvailable()
196+
public bool IsUpdateAvailable()
197197
{
198198
try
199199
{
@@ -207,7 +207,7 @@ public void UpdateTranslations()
207207
}
208208
catch (Exception)
209209
{
210-
return null;
210+
return false;
211211
}
212212

213213
}

0 commit comments

Comments
 (0)