Skip to content

Commit

Permalink
Refactor duplicating methods to include values of keyResult
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelMoeri committed Jan 13, 2025
1 parent 829972b commit 33a523d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ private KeyResult makeCopyOfKeyResultMetric(KeyResult keyResult, Objective dupli
.withDescription(keyResult.getDescription()) //
.withOwner(keyResult.getOwner()) //
.withUnit(((KeyResultMetric) keyResult).getUnit()) //
.withBaseline(0D) //
.withStretchGoal(1D) //
.withBaseline(((KeyResultMetric) keyResult).getBaseline()) //
.withStretchGoal(((KeyResultMetric) keyResult).getStretchGoal()) //
.build();
}

Expand All @@ -162,9 +162,9 @@ private KeyResult makeCopyOfKeyResultOrdinal(KeyResult keyResult, Objective dupl
.withTitle(keyResult.getTitle()) //
.withDescription(keyResult.getDescription()) //
.withOwner(keyResult.getOwner()) //
.withCommitZone("-") //
.withTargetZone("-") //
.withStretchZone("-") //
.withCommitZone(((KeyResultOrdinal) keyResult).getCommitZone()) //
.withTargetZone(((KeyResultOrdinal) keyResult).getTargetZone()) //
.withStretchZone(((KeyResultOrdinal) keyResult).getStretchZone()) //
.build();
}

Expand Down

0 comments on commit 33a523d

Please sign in to comment.