From 4b323cb8a1bbfab29f77675af425f373ec9eb77d Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Sat, 18 Oct 2025 17:00:55 +0100 Subject: [PATCH] Fix SA1008: Opening parenthesis should be spaced correctly --- src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs b/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs index 3e6bbcafd10..fb45ab5d818 100644 --- a/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs +++ b/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs @@ -2134,7 +2134,7 @@ private void UpdateUser(LocalUser user, if (user.PasswordRequired != changed.PasswordRequired) properties |= UserProperties.PasswordRequired; - if ( properties != UserProperties.None + if (properties != UserProperties.None || passwordExpired != PasswordExpiredState.Unchanged || password != null) {