Skip to content

Commit

Permalink
fix: empty lines ignored when loading data for caching Fixes #449
Browse files Browse the repository at this point in the history
  • Loading branch information
augi committed Aug 27, 2024
1 parent d35aea1 commit 186f587
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ abstract class ComposeUp extends DefaultTask {
if (processesAsString.startsWith('[')) {
processes = new JsonSlurper().parseText(processesAsString)
} else {
processes = processesAsString.split('\\R').collect { new JsonSlurper().parseText(it) }
processes = processesAsString.split('\\R').findAll { it.trim() }.collect { new JsonSlurper().parseText(it) }
}
List<Object> transformed = processes.collect {
// Status field contains something like "Up 8 seconds", so we have to strip the duration.
Expand Down

0 comments on commit 186f587

Please sign in to comment.