Skip to content

Commit

Permalink
format improve
Browse files Browse the repository at this point in the history
  • Loading branch information
TJX2014 committed Jul 2, 2020
1 parent 24384c9 commit fe6a32d
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2612,7 +2612,7 @@ object Sequence {
val stepDays = step.days
val stepMicros = step.microseconds

if(scale == MICROS_PER_DAY && stepMonths == 0 && stepDays == 0) {
if (scale == MICROS_PER_DAY && stepMonths == 0 && stepDays == 0) {
throw new IllegalArgumentException(
"sequence step must be a day interval if start and end values are dates")
}
Expand Down Expand Up @@ -2682,13 +2682,13 @@ object Sequence {
val check = if (scale == MICROS_PER_DAY) {
s"""
if ($stepMonths == 0 && $stepDays == 0) {
throw new IllegalArgumentException(
"sequence step must be a day interval if start and end values are dates");
throw new IllegalArgumentException(
"sequence step must be a day interval if start and end values are dates");
}
"""
} else {
""
}
} else {
""
}

s"""
|final int $stepMonths = $step.months;
Expand Down

0 comments on commit fe6a32d

Please sign in to comment.