Skip to content

Commit 05aa2d5

Browse files
authored
fix the repeated judgment conditions (#14363)
1 parent 3110e68 commit 05aa2d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceBus/ServiceBus/Cmdlets/AzureServiceBusCmdletBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public static SkuTier ParseSkuTier(string skuTier)
184184
public static TimeSpan ParseTimespan(string strTimespan)
185185
{
186186
TimeSpan tspan = new TimeSpan();
187-
if(strTimespan.Contains("P") || strTimespan.Contains("D") || strTimespan.Contains("T") || strTimespan.Contains("H") || strTimespan.Contains("M") || strTimespan.Contains("M"))
187+
if(strTimespan.Contains("P") || strTimespan.Contains("D") || strTimespan.Contains("T") || strTimespan.Contains("H") || strTimespan.Contains("M"))
188188
{
189189
tspan = XmlConvert.ToTimeSpan(strTimespan);
190190
}

0 commit comments

Comments
 (0)