Skip to content

Commit

Permalink
bugfix: fix typo (apache#1601)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyqian authored and zjinlei committed Sep 6, 2019
1 parent 25da228 commit 4aca480
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/src/main/java/io/seata/common/util/DurationUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class DurationUtil {

public static final String DAY_UNIT = "d";
public static final String HOUR_UNIT = "h";
public static final String MINIUTE_UNIT = "m";
public static final String MINUTE_UNIT = "m";
public static final String SECOND_UNIT = "s";
public static final String MILLIS_SECOND_UNIT = "ms";

Expand All @@ -44,8 +44,8 @@ public static Duration parse(String str) {
} else if (str.contains(HOUR_UNIT)) {
Long value = doParse(HOUR_UNIT, str);
return value == null ? null : Duration.ofHours(value);
} else if (str.contains(MINIUTE_UNIT)) {
Long value = doParse(MINIUTE_UNIT, str);
} else if (str.contains(MINUTE_UNIT)) {
Long value = doParse(MINUTE_UNIT, str);
return value == null ? null : Duration.ofMinutes(value);
} else if (str.contains(SECOND_UNIT)) {
Long value = doParse(SECOND_UNIT, str);
Expand Down

0 comments on commit 4aca480

Please sign in to comment.