Skip to content

Commit

Permalink
Fix some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Apr 26, 2024
1 parent 2dd19e9 commit c93c782
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/redix/uri.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defmodule Redix.URI do
redis://[username:password@]host[:port][/db]
> #### Valkey {: .tip}
> #### Valkey {: .tip}
>
> URIs also work with [Valkey](https://valkey.io/), a Redis-compatible in-memory key-value
> store. Use `valkey://` as the scheme instead of `redis://`.
Expand All @@ -32,7 +32,8 @@ defmodule Redix.URI do
%URI{host: host, port: port, scheme: scheme} = uri = URI.parse(uri)

unless scheme in ["redis", "rediss", "valkey"] do
raise ArgumentError, "expected scheme to be redis://, valkey://, or rediss://, got: #{scheme}://"
raise ArgumentError,
"expected scheme to be redis://, valkey://, or rediss://, got: #{scheme}://"
end

{username, password} = username_and_password(uri)
Expand Down

0 comments on commit c93c782

Please sign in to comment.