Skip to content

Commit

Permalink
fix the repeated judgment conditions (#14363)
Browse files Browse the repository at this point in the history
  • Loading branch information
Youri970410 authored Mar 2, 2021
1 parent 3110e68 commit 05aa2d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 05aa2d5

Please sign in to comment.