Fix incorrect result pipe return.
[hope.git] / 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.018866 seconds and 4 git commands to generate.