1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-12-25 04:53:06 +00:00

use nil instead of empty string

This commit is contained in:
Jeff Becker 2018-01-29 10:06:16 -05:00
parent dffde6631d
commit 066fe1a697
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05
2 changed files with 3 additions and 3 deletions

View file

@ -42,7 +42,7 @@
# Configures http settings, upstream proxy etc.
config :pleroma, :http,
proxy_url: ""
proxy_url: nil
config :pleroma, :instance,
version: version,

View file

@ -4,9 +4,9 @@ defmodule Pleroma.HTTP do
def process_request_options(options) do
config = Application.get_env(:pleroma, :http, [])
proxy = Keyword.get(config, :proxy_url, "")
proxy = Keyword.get(config, :proxy_url, nil)
case proxy do
"" -> options
nil -> options
_ -> options ++ [proxy: proxy]
end
end