small fix
This commit is contained in:
parent
8df8cef749
commit
8b67fcbc50
3 changed files with 10 additions and 14 deletions
|
|
@ -169,5 +169,4 @@ let upload_avatar files nick =
|
|||
Ok ()
|
||||
| _files -> Error "More than one file provided"
|
||||
|
||||
let exists nick =
|
||||
match Db.find_opt Q.get_user nick with Error _ -> false | Ok _ -> true
|
||||
let exists nick = Result.is_ok (Db.find_opt Q.get_user nick)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue