Skip to content

Commit

Permalink
Improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
algomaster99 committed Aug 19, 2022
1 parent 31713c8 commit dc5dcaf
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,8 @@ protected void repairInternal(CtBinaryOperator element) {
*/
binaryOperator.setType(getFactory().Type().doublePrimitiveType());
}
if (!binaryOperator.getType().equals(getFactory().Type().doublePrimitiveType())) {
binaryOperator
.getRightHandOperand()
.setTypeCasts(List.of(getFactory().Type().doublePrimitiveType()));
binaryOperator.setType(getFactory().Type().doublePrimitiveType());
}
// We do not need to cast the type of the right hand operand as it is already a
// double
}
}
}
Expand Down

0 comments on commit dc5dcaf

Please sign in to comment.