From e29299022ebd1dd264aef7ae97b6e89f685d5064 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Wed, 29 Jun 2022 07:49:55 +0200 Subject: [PATCH] Clear-NetboxCredential: Fix PSSA (trailing whitespace) --- Functions/Setup/Clear-NetboxCredential.ps1 | 4 ++-- NetboxPS/NetboxPS.psm1 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Functions/Setup/Clear-NetboxCredential.ps1 b/Functions/Setup/Clear-NetboxCredential.ps1 index 62109ab..3decf44 100644 --- a/Functions/Setup/Clear-NetboxCredential.ps1 +++ b/Functions/Setup/Clear-NetboxCredential.ps1 @@ -4,8 +4,8 @@ ( [switch]$Force ) - + if ($Force -or ($PSCmdlet.ShouldProcess('Netbox Credentials', 'Clear'))) { $script:NetboxConfig.Credential = $null } -} \ No newline at end of file +} diff --git a/NetboxPS/NetboxPS.psm1 b/NetboxPS/NetboxPS.psm1 index d429bbb..7505c90 100644 --- a/NetboxPS/NetboxPS.psm1 +++ b/NetboxPS/NetboxPS.psm1 @@ -438,7 +438,7 @@ function Clear-NetboxCredential { ( [switch]$Force ) - + if ($Force -or ($PSCmdlet.ShouldProcess('Netbox Credentials', 'Clear'))) { $script:NetboxConfig.Credential = $null }