Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit c4481ab

Browse files
committed
Fix style errors found by meta tests
1 parent 641b965 commit c4481ab

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

DscResources/MSFT_MsiPackage/MSFT_MsiPackage.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Suppress Global Vars PSSA Error because $global:DSCMachineStatus must be allowed
22
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidGlobalVars', '')]
33
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '')]
4-
param()
4+
5+
param ()
56

67
$errorActionPreference = 'Stop'
78
Set-StrictMode -Version 'Latest'

DscResources/MSFT_UserResource/MSFT_UserResource.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ function Get-TargetResourceOnFullSKU
353353
#>
354354
function Set-TargetResourceOnFullSKU
355355
{
356+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSShouldProcess', '')]
356357
[CmdletBinding(SupportsShouldProcess = $true)]
357358
param
358359
(
@@ -1125,7 +1126,7 @@ function Test-TargetResourceOnNanoServer
11251126

11261127
if ($PSBoundParameters.ContainsKey('Password'))
11271128
{
1128-
if(-not (Test-CredentialsValidOnNanoServer -UserName $UserName -Password $Password.Password))
1129+
if (-not (Test-CredentialsValidOnNanoServer -UserName $UserName -Password $Password.Password))
11291130
{
11301131
# The Password property does not match
11311132
Write-Verbose -Message ($script:localizedData.PasswordPropertyMismatch -f 'Password')

0 commit comments

Comments
 (0)