Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed May 17, 2024
1 parent 6887d02 commit 11af780
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/gleam/pgo.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ pub fn url_config(database_url: String) -> Result(Config, Nil) {
use uri <- result.then(uri.parse(database_url))
use #(userinfo, host, path, db_port) <- result.then(case uri {
Uri(
scheme: Some("postgres"),
userinfo: Some(userinfo),
host: Some(host),
port: Some(db_port),
path: path,
..,
) -> Ok(#(userinfo, host, path, db_port))
scheme: Some("postgres"),
userinfo: Some(userinfo),
host: Some(host),
port: Some(db_port),
path: path,
..,
) -> Ok(#(userinfo, host, path, db_port))
_ -> Error(Nil)
})
use #(user, password) <- result.then(case string.split(userinfo, ":") {
Expand Down

0 comments on commit 11af780

Please sign in to comment.