code cosmetic
This commit is contained in:
@@ -40,7 +40,8 @@ public partial class Form1
|
||||
|
||||
private bool CheckStatus()
|
||||
{
|
||||
bool CheckStatusRet = default;
|
||||
bool CheckStatusRet;
|
||||
|
||||
if (!IsMinecaftProfileLoaded() || !MinecraftProfileChecker.CheckProfile(GetMinecraftProfilePath()))
|
||||
{
|
||||
SetStatus(LangRes.StatusText_MinecraftProfileWarning, MySymbols.icons8_general_warning_sign_16px);
|
||||
@@ -52,9 +53,7 @@ public partial class Form1
|
||||
CheckStatusRet = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
CheckStatusRet = true;
|
||||
}
|
||||
|
||||
return CheckStatusRet;
|
||||
}
|
||||
@@ -91,7 +90,7 @@ public partial class Form1
|
||||
if (IsUpdateConfigLoaded())
|
||||
updateConfig = (ModpackConfig)ModpackConfig.LoadFromUrl(filePath);
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch
|
||||
{
|
||||
RadTextBoxControl_ModpackConfig.Text = string.Empty;
|
||||
}
|
||||
@@ -117,9 +116,9 @@ public partial class Form1
|
||||
|
||||
try
|
||||
{
|
||||
lastUpdateCheckResult = await updater.Check(!AppConfig.Instance.AllowRemoveLocalFiles);
|
||||
lastUpdateCheckResult = await updater.Check();
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch
|
||||
{
|
||||
SetStatus(LangRes.StatusText_ErrorWhileUpdateCheckOrUpdate, MySymbols.icons8_delete_16px);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user