small fix

This commit is contained in:
Swrup 2022-02-20 01:58:33 +01:00
parent ff688a0759
commit 7966667050
3 changed files with 10 additions and 14 deletions

View file

@ -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)