GitCommands.Settings.SafeSetBool C# (CSharp) Method

SafeSetBool() private static method

private static SafeSetBool ( string key, Action actionToPerformIfValueExists ) : void
key string
actionToPerformIfValueExists Action
return void
        private static void SafeSetBool(string key, Action<bool> actionToPerformIfValueExists)
        {
            SafeSetString(key, x => actionToPerformIfValueExists(x == "True"));
        }