Skip to content

Commit

Permalink
debugs skip strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
net-cscience-raphael committed Dec 3, 2024
1 parent 77f2ed9 commit f803265
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ class LateFilter(
if (descriptors.isEmpty() || descriptors.first().values().containsKey(keys[0]).not()) {
when (skip) {
Skip.ERROR -> throw IllegalArgumentException("no descriptor found for field $fieldName")
Skip.WARN -> logger.warn { "no descriptor found for field $fieldName" }
Skip.WARN -> logger.warn { "no descriptor found for field $fieldName" }.also { return@forEach }
Skip.IGNORE -> return@forEach
Skip.FORWARD -> emit(retrieved)
Skip.FORWARD -> emit(retrieved).also { return@forEach }
}
}

Expand Down Expand Up @@ -109,7 +109,7 @@ enum class Skip(val strategy: String) {
WARN.strategy -> WARN
IGNORE.strategy -> IGNORE
FORWARD.strategy -> FORWARD
else -> throw IllegalArgumentException("Cannot parse '$str")
else -> ERROR
}
}
}
Expand Down

0 comments on commit f803265

Please sign in to comment.