Skip to content

Commit

Permalink
fix: remove unnecessary match
Browse files Browse the repository at this point in the history
  • Loading branch information
purefunctor committed May 2, 2024
1 parent ca5ddf1 commit 77a5eb5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/backend/Routes/Api/Login.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ open Types_native.Definitions_j
open Vault_native

let get_user request username =
Dream.sql request @@ fun db ->
match%lwt Models.User.get_by_username ~username db with
| Ok user -> Lwt.return_ok user
| Error e -> Lwt.return_error e
Dream.sql request @@ Models.User.get_by_username ~username

let handler request =
let handle_salt username =
Expand Down

0 comments on commit 77a5eb5

Please sign in to comment.