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(5),
it.getOrNull(6) it.getOrNull(6)
).forEach { ).forEach {
val parsedOffset = parseOffset(it) val offsetFromString = parseOffset(it)
offsetParsed = offsetParsed ?: parsedOffset offsetParsed = offsetParsed ?: offsetFromString
when { when {
parsedOffset == null && yearParsed == null -> { offsetFromString == null && yearParsed == null -> {
yearParsed = parseYears(it) yearParsed = parseYears(it)
} }
parsedOffset != null && offsetParsed == null -> { offsetFromString != null && offsetParsed == null -> {
offsetParsed = parsedOffset offsetParsed = offsetFromString
} }
} }
} }

View File

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