Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
belenios
belenios
Commits
58af5aac
Commit
58af5aac
authored
Jul 24, 2017
by
Stephane Glondu
Browse files
Remove suspicious call to cast_unknown_content_kind
parent
f1f1ecee
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/web/web_site.ml
View file @
58af5aac
...
...
@@ -1188,12 +1188,11 @@ let () =
let
module
W
=
(
val
w
)
in
let
module
WE
=
Web_election
.
Make
(
W
)
(
LwtRandom
)
in
if
metadata
.
e_owner
=
Some
u
then
(
(
try
%
lwt
try
%
lwt
WE
.
B
.
update_cred
~
old
~
new_
>>
String
.
send
(
"OK"
,
"text/plain"
)
with
Error
e
->
with
Error
e
->
String
.
send
(
"Error: "
^
explain_error
e
,
"text/plain"
)
)
>>=
(
fun
x
->
return
@@
cast_unknown_content_kind
x
)
)
else
forbidden
()
)
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment