Skip to content

Commit

Permalink
Update MauiSettingsHelper.cs
Browse files Browse the repository at this point in the history
Fixed warnings
  • Loading branch information
AndreasReitberger committed Nov 14, 2023
1 parent 2ade6d5 commit 80775f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/MauiSettings/Helper/MauiSettingsHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ public static T GetSettingsValue<T>(string key, T defaultValue)
break;
}
}
#if DEBUG
catch (Exception ex)
#else
catch (Exception)
#endif
{
SetSettingsValue(key, defaultValue);
return defaultValue;
Expand Down Expand Up @@ -141,6 +145,6 @@ public static void ClearSecureSettings()
{
SecureStorage.Default.RemoveAll();
}
#endregion
#endregion
}
}

0 comments on commit 80775f1

Please sign in to comment.