Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
tapiwa-tiyemba authored Feb 20, 2025
1 parent 10b6609 commit 64708fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/repository/Merger.scala
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ object Merger {
balancingCharge = Some(
BalancingCharge(
balancingChargeYesNo = extractedMaybe
.map(_.balancingCharge.exists(_.balancingChargeYesNo == true))
.flatMap(_.balancingCharge.map(_.balancingChargeYesNo))
.getOrElse(fromDownstreamAdjustment.balancingCharge.isDefined),
balancingChargeAmount = fromDownstreamAdjustment.balancingCharge
)
Expand Down

0 comments on commit 64708fb

Please # to comment.