You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public static bool? GetProperty([NotNull]this IConfig config, string key, bool? defaultValue)
{
if (config == null) throw new ArgumentNullException(nameof(config));
if (!config.TryGetProperty(key, out var str) || str == null) return defaultValue;
if (!bool.TryParse(str, out var value))
Logger().Error(new ApolloConfigException($"GetBooleanProperty for {key} failed, return default value {defaultValue}"));
return defaultValue;
}
在bool.TryParse 成功的情况下应该return value
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in 14 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 14 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.
在bool.TryParse 成功的情况下应该return value
The text was updated successfully, but these errors were encountered: