Skip to content

Commit

Permalink
fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
arvyy committed Sep 9, 2024
1 parent 2fd8391 commit a348ead
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ public final Object execute(VirtualFrame frame) {

@Specialization
Object doInt(int a) {
if (a < 0)
if (a < 0) {
return signalNegativeNumber(a);
}
var res = Math.sqrt(a);
var intRes = (int) res;
if (intRes == res) {
Expand All @@ -54,8 +55,9 @@ Object doInt(int a) {

@Specialization
Object doDouble(double a) {
if (a < 0)
if (a < 0) {
return signalNegativeNumber(a);
}
return Math.sqrt(a);
}

Expand Down

0 comments on commit a348ead

Please sign in to comment.