home
/
code
/
hope.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4837199
)
Fix incorrect result pipe return.
author
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 13 Aug 2014 02:24:02 +0000
(22:24 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 13 Aug 2014 02:24:02 +0000
(22:24 -0400)
src/hope_result.erl
patch
|
blob
|
blame
|
history
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.028543 seconds
and
4
git commands to generate.