Skip to content

Commit

Permalink
#43 Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
vityaman committed May 17, 2024
1 parent ec8c60e commit b9fd547
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,19 @@ class LoggingPromotionService(

override suspend fun approve(id: PromotionRequest.Id) =
runCatching { origin.approve(id) }
.onSuccess { log.info("Promotion request with id $id was approved") }
.onSuccess {
log.info("Promotion request with id $id was approved")
}
.onFailure {
log.warn("Failed to approve promotion request with is $id")
}
.getOrThrow()

override suspend fun reject(id: PromotionRequest.Id) =
runCatching { origin.reject(id) }
.onSuccess { log.info("Promotion request with id $id was rejected") }
.onSuccess {
log.info("Promotion request with id $id was rejected")
}
.onFailure {
log.warn("Failed to reject promotion request with is id $id")
}
Expand Down

0 comments on commit b9fd547

Please sign in to comment.