mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2024-11-29 13:38: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(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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user