Skip to content

Commit

Permalink
Minor style change round if...else cases with return.
Browse files Browse the repository at this point in the history
  • Loading branch information
aardvark179 committed Dec 3, 2024
1 parent 0f4e856 commit c14ec1c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rhino/src/main/java/org/mozilla/javascript/AccessorSlot.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,22 +117,22 @@ Function getGetterFunction(String name, Scriptable scope) {
boolean isSameGetterFunction(Object function) {
if (function == Scriptable.NOT_FOUND) {
return true;
} else if (getter == null) {
}
if (getter == null) {
return ScriptRuntime.shallowEq(Undefined.instance, function);
} else {
return getter.isSameGetterFunction(function);
}
return getter.isSameGetterFunction(function);
}

@Override
boolean isSameSetterFunction(Object function) {
if (function == Scriptable.NOT_FOUND) {
return true;
} else if (setter == null) {
}
if (setter == null) {
return ScriptRuntime.shallowEq(Undefined.instance, function);
} else {
return setter.isSameSetterFunction(function);
}
return setter.isSameSetterFunction(function);
}

interface Getter {
Expand Down

0 comments on commit c14ec1c

Please sign in to comment.