Skip to content

Commit a08f043

Browse files
committed
Remove Force.IsPresent because ShouldProcess should stand on its own
1 parent db9e3dc commit a08f043

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ResourceManager/CognitiveServices/Commands.Management.CognitiveServices/CognitiveServicesAccount/NewAzureCognitiveServicesAccount.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,7 @@ public override void ExecuteCmdlet()
9797
};
9898

9999
if (ShouldProcess(
100-
this.Name, string.Format(CultureInfo.CurrentCulture, Resources.NewAccount_ProcessMessage, this.Name, this.Type, this.SkuName, this.Location))
101-
||
102-
Force.IsPresent)
100+
this.Name, string.Format(CultureInfo.CurrentCulture, Resources.NewAccount_ProcessMessage, this.Name, this.Type, this.SkuName, this.Location)))
103101
{
104102
if (Force.IsPresent)
105103
{

0 commit comments

Comments
 (0)