We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40b8304 commit 2e32349Copy full SHA for 2e32349
documentation/livebooks/custom_transformation.livemd
@@ -89,14 +89,14 @@ You can combine it all together to use `ExOptimizer` library
89
90
```elixir
91
def process(_version, original_file) do
92
- tmp_path = Waffle.File.generate_temporary_path(file)
+ tmp_path = Waffle.File.generate_temporary_path(original_file)
93
94
File.cp!(original_file.path, tmp_path)
95
96
- with {:ok, _} <- ExOptimizer.optimize(file.path) do
+ with {:ok, _} <- ExOptimizer.optimize(tmp_path) do
97
{
98
:ok,
99
- %Waffle.File{file | path: tmp_path, is_tempfile?: true}
+ %Waffle.File{original_file | path: tmp_path, is_tempfile?: true}
100
}
101
end
102
0 commit comments