Skip to content

Commit 499d3ff

Browse files
committed
🧹 Suppress ShouldProcess for Approve Action since it is generic
1 parent fd9be49 commit 499d3ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ModuleFast.psm1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2142,9 +2142,11 @@ filter ConvertFrom-ModuleManifest {
21422142
}
21432143
return $moduleFastInfo
21442144
}
2145-
21462145
#Fixes an issue where ShouldProcess will not respect ConfirmPreference if -Debug is specified
2146+
2147+
21472148
function Approve-Action {
2149+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSShouldProcess", '', Scope='Function')]
21482150
param(
21492151
[ValidateNotNullOrEmpty()][string]$Target,
21502152
[ValidateNotNullOrEmpty()][string]$Action,

0 commit comments

Comments
 (0)