From d5ec8f30b431edfeb08aaa5b6419b1edb212baa0 Mon Sep 17 00:00:00 2001 From: Youri970410 <62531040+Youri970410@users.noreply.github.com> Date: Tue, 2 Mar 2021 13:15:59 +0800 Subject: [PATCH] fix the repeated judgment conditions (#14363) --- src/ServiceBus/ServiceBus/Cmdlets/AzureServiceBusCmdletBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServiceBus/ServiceBus/Cmdlets/AzureServiceBusCmdletBase.cs b/src/ServiceBus/ServiceBus/Cmdlets/AzureServiceBusCmdletBase.cs index e689b9639a2c..05a3decc70dc 100644 --- a/src/ServiceBus/ServiceBus/Cmdlets/AzureServiceBusCmdletBase.cs +++ b/src/ServiceBus/ServiceBus/Cmdlets/AzureServiceBusCmdletBase.cs @@ -184,7 +184,7 @@ public static SkuTier ParseSkuTier(string skuTier) public static TimeSpan ParseTimespan(string strTimespan) { TimeSpan tspan = new TimeSpan(); - if(strTimespan.Contains("P") || strTimespan.Contains("D") || strTimespan.Contains("T") || strTimespan.Contains("H") || strTimespan.Contains("M") || strTimespan.Contains("M")) + if(strTimespan.Contains("P") || strTimespan.Contains("D") || strTimespan.Contains("T") || strTimespan.Contains("H") || strTimespan.Contains("M")) { tspan = XmlConvert.ToTimeSpan(strTimespan); }