Skip to content

Commit 9bf8a8d

Browse files
committed
fix console warnings
1 parent 0466622 commit 9bf8a8d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/mix/tasks/g.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ defmodule Mix.Tasks.Waffle do
4646
end
4747

4848
defp generate_uploader_file(model_name, project_module_name, path) do
49-
model_destination = Path.join(System.cwd(), "#{path}/#{underscore(model_name)}.ex")
49+
model_destination = Path.join(File.cwd!, "#{path}/#{underscore(model_name)}.ex")
5050
create_uploader(model_name, project_module_name, model_destination)
5151
end
5252

5353
defp generate_phx_uploader_file(model_name, project_module_name) do
5454
app_name = Mix.Project.config[:app]
55-
model_destination = Path.join(System.cwd(), "/lib/#{app_name}_web/uploaders/#{underscore(model_name)}.ex")
55+
model_destination = Path.join(File.cwd!, "/lib/#{app_name}_web/uploaders/#{underscore(model_name)}.ex")
5656
create_uploader(model_name, project_module_name, model_destination)
5757
end
5858

lib/waffle/storage/s3.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ defmodule Waffle.Storage.S3 do
66
destination_dir = definition.storage_dir(version, {file, scope})
77
s3_bucket = s3_bucket(definition)
88
s3_key = Path.join(destination_dir, file.file_name)
9-
asset_host = asset_host(definition)
109
acl = definition.acl(version, {file, scope})
1110

1211
s3_options =

0 commit comments

Comments
 (0)