home
/
code
/
hope.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix incorrect result pipe return.
[hope.git]
/
src
/
hope_result.erl
diff --git
a/src/hope_result.erl
b/src/hope_result.erl
index
1b217f8
..
44f3ddd
100644
(file)
--- a/
src/hope_result.erl
+++ b/
src/hope_result.erl
@@
-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.