Skip to content

Commit 84407b1

Browse files
author
Ben Hillis
committed
formatting
1 parent e0ede96 commit 84407b1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/windows/common/wslutil.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,7 @@ wsl::windows::common::wslutil::GetDefaultVersion(void)
522522
return version;
523523
}
524524

525-
namespace
526-
{
525+
namespace {
527526

528527
// Returns true if the current process is running as a shadow admin under
529528
// Windows Admin Protection. Caches the DLL lookup on first call.
@@ -539,8 +538,7 @@ bool IsAdminProtectionEnabled()
539538
static std::optional<LxssDynamicFunction<ShadowAdminEnabledFn>> s_fn;
540539
static std::once_flag s_initFlag;
541540

542-
std::call_once(s_initFlag, []()
543-
{
541+
std::call_once(s_initFlag, []() {
544542
LxssDynamicFunction<ShadowAdminEnabledFn> fn{DynamicFunctionErrorLogs::None};
545543
if (SUCCEEDED(fn.load(L"SecurityHealthUdk.dll", "Shield_LUAIsShadowAdminEnabled")))
546544
{

0 commit comments

Comments
 (0)