mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2024-11-26 03:58:50 +00:00
remove redundant changes
This commit is contained in:
parent
3408d58cb7
commit
b0889d0677
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user