From afb1cfc2353f11cb8f700393381dcc18457ac986 Mon Sep 17 00:00:00 2001 From: Youri Date: Thu, 25 Feb 2021 18:04:07 +0800 Subject: [PATCH] fix the repeated judgment conditions --- 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); }