Skip to content

Commit

Permalink
address review
Browse files Browse the repository at this point in the history
  • Loading branch information
fhennig committed Nov 4, 2024
1 parent 59f7328 commit a7f2068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class AccessionPreconditionValidator(

fun andThatSequenceEntriesHaveNoErrors(): CommonPreconditions {
val sequenceEntriesWithErrors = sequenceEntries
.filter { row -> row[SequenceEntriesView.errorsColumn].orEmpty().isNotEmpty() }
.filter { it[SequenceEntriesView.errorsColumn].orEmpty().isNotEmpty() }

if (sequenceEntriesWithErrors.isNotEmpty()) {
throw UnprocessableEntityException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ class SubmissionDatabaseService(
SequenceEntriesView.isMaxVersion and
SequenceEntriesView.statusIs(Status.PROCESSED) and
SequenceEntriesView.processingResultIsOneOf(
listOf(ProcessingResult.WARNINGS, ProcessingResult.NO_ISSUES)
listOf(ProcessingResult.WARNINGS, ProcessingResult.NO_ISSUES),
)
}
.orderBy(SequenceEntriesView.accessionColumn)
Expand Down

0 comments on commit a7f2068

Please sign in to comment.