diff --git a/src/main/java/org/riversun/promise/Promise.java b/src/main/java/org/riversun/promise/Promise.java index f85a419..fad91db 100644 --- a/src/main/java/org/riversun/promise/Promise.java +++ b/src/main/java/org/riversun/promise/Promise.java @@ -248,15 +248,9 @@ public void reject() { } - private void onFinish(Object... result) { + private void onFinish(Object result) { - final Object crrResult; - - if (result != null && result.length > 0) { - crrResult = result[0]; - } else { - crrResult = null; - } + final Object crrResult = result; final Promise nextPromise = mParentPromise.mNextPromise;