Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 71a1f71

Browse files
committed
Fix warnings on Elixir v1.19
1 parent c0f0509 commit 71a1f71

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Mix.install([{:fss, "~> 0.1.0"}])
2929
## License
3030

3131
Copyright 2023 Philip Sampaio, José Valim
32+
Copyright 2025 José Valim
3233

3334
Licensed under the Apache License, Version 2.0 (the "License");
3435
you may not use this file except in compliance with the License.

lib/fss/s3.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ defmodule FSS.S3 do
123123
|> normalize_config!()
124124
|> validate_config!()
125125
|> then(fn %Config{} = config ->
126-
config = %Config{config | bucket: bucket}
126+
config = %{config | bucket: bucket}
127127

128128
if is_nil(config.endpoint) and not is_nil(bucket) do
129129
s3_host_suffix = "s3." <> config.region <> ".amazonaws.com"
@@ -136,7 +136,7 @@ defmodule FSS.S3 do
136136
{"https://" <> bucket <> "." <> s3_host_suffix, nil}
137137
end
138138

139-
%Config{config | endpoint: endpoint, bucket: bucket}
139+
%{config | endpoint: endpoint, bucket: bucket}
140140
else
141141
config
142142
end

0 commit comments

Comments
 (0)