Fix warning on Elixir master (#496)

This commit is contained in:
Wojtek Mach 2021-08-16 21:42:51 +02:00 committed by GitHub
parent 22e5b8e4e5
commit 8776ccdf31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,8 +158,7 @@ defmodule Livebook.FileSystem.S3.Signature do
# Copied from https://github.com/ex-aws/ex_aws/blob/623478ed321ffc6c07fdd7236a2f0e03f1cbd517/lib/ex_aws/request/url.ex#L108
defp uri_encode(url), do: URI.encode(url, &valid_path_char?/1)
# Space character
defp valid_path_char?(?\ ), do: false
defp valid_path_char?(?\s), do: false
defp valid_path_char?(?/), do: true
defp valid_path_char?(c) do