Skip to content

Commit 4a4f6b3

Browse files
committed
More concise notation
1 parent 5a2a950 commit 4a4f6b3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

persistence/src/main/scala/hmda/persistence/processing/SubmissionManager.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,7 @@ class SubmissionManager(submissionId: SubmissionId) extends HmdaActor {
164164
}
165165

166166
private def updateFilingStatus(filingStatus: FilingStatus) = {
167-
for {
168-
p <- filingPersistence
169-
} yield {
170-
p ? UpdateFilingStatus(period, filingStatus)
171-
}
167+
filingPersistence.map(_ ? UpdateFilingStatus(period, filingStatus))
172168
}
173169

174170
}

0 commit comments

Comments
 (0)