remove redundant changes

This commit is contained in:
InsanusMokrassar 2021-04-10 15:38:20 +06:00
parent 3408d58cb7
commit b0889d0677
2 changed files with 6 additions and 6 deletions

View File

@ -70,14 +70,14 @@ fun createSimpleScheduler(
it.getOrNull(5),
it.getOrNull(6)
).forEach {
val parsedOffset = parseOffset(it)
offsetParsed = offsetParsed ?: parsedOffset
val offsetFromString = parseOffset(it)
offsetParsed = offsetParsed ?: offsetFromString
when {
parsedOffset == null && yearParsed == null -> {
offsetFromString == null && yearParsed == null -> {
yearParsed = parseYears(it)
}
parsedOffset != null && offsetParsed == null -> {
offsetParsed = parsedOffset
offsetFromString != null && offsetParsed == null -> {
offsetParsed = offsetFromString
}
}
}

View File

@ -1,6 +1,6 @@
package dev.inmo.krontab.internal
import com.soywiz.klock.*
import com.soywiz.klock.DateTime
import dev.inmo.krontab.*
import dev.inmo.krontab.collection.plus