# HG changeset patch # User cin # Date 1425910880 -10800 # Node ID e03ccec4a08d7493219c650c474e4111d37236bf # Parent 706fccb8552436e3978cc048a0f6ff7289b7ac0c minor changes diff -r 706fccb85524 -r e03ccec4a08d Implab/PromiseT.cs --- a/Implab/PromiseT.cs Sun Mar 08 02:52:27 2015 +0300 +++ b/Implab/PromiseT.cs Mon Mar 09 17:21:20 2015 +0300 @@ -41,9 +41,7 @@ public class Promise : AbstractPromise, IDeferred { public static IPromise FromResult(T value) { - var p = new Promise(); - p.Resolve(value); - return p; + return new SuccessPromise(value); } public static IPromise FromException(Exception error) {