Removed/unified semi-redundant else-if branch
This commit is contained in:
parent
750f209035
commit
eee11438d7
1 changed files with 2 additions and 3 deletions
|
@ -396,12 +396,11 @@ public class RhinoEngine implements ScriptingEngine {
|
|||
try {
|
||||
Object prop = so.get(propname, so);
|
||||
|
||||
if ((prop == null) || (prop == Undefined.instance)) {
|
||||
if ((prop == null) || (prop == Undefined.instance)
|
||||
|| (prop == ScriptableObject.NOT_FOUND)) {
|
||||
return null;
|
||||
} else if (prop instanceof Wrapper) {
|
||||
return ((Wrapper) prop).unwrap();
|
||||
} else if (prop == Undefined.instance || prop == ScriptableObject.NOT_FOUND) {
|
||||
return null;
|
||||
} else {
|
||||
// not all Rhino types convert to a string as expected
|
||||
// when calling toString() - try to do better by using
|
||||
|
|
Loading…
Add table
Reference in a new issue