Fix incorrect result pipe return.
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 13 Aug 2014 02:24:02 +0000 (22:24 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Wed, 13 Aug 2014 02:24:02 +0000 (22:24 -0400)
src/hope_result.erl

index 1b217f8..44f3ddd 100644 (file)
@@ -24,7 +24,8 @@
        , Error :: any()
        , F     :: fun((X) -> t(Ok, Error))
        .
-pipe([]    , X) -> X;
+pipe([], X) ->
+    {ok, X};
 pipe([F|Fs], X) ->
     case F(X)
     of  {error, _}=E -> E
This page took 0.018931 seconds and 4 git commands to generate.