Skip to content

Commit

Permalink
warning: using map.field notation (without parentheses) to invoke fun…
Browse files Browse the repository at this point in the history
…ction Phoenix.Digester.Gzip.file_extensions() is deprecated, you must add parentheses instead: remote.function() (#5693)
  • Loading branch information
bradhanks committed Jan 11, 2024
1 parent 68ac5f2 commit d184ff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phoenix/digester.ex
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ defmodule Phoenix.Digester do
compressors = Application.fetch_env!(:phoenix, :static_compressors)

Enum.each(compressors, fn compressor ->
[file_extension | _] = compressor.file_extensions
[file_extension | _] = compressor.file_extensions()

compressed_digested_result =
compressor.compress_file(file.digested_filename, file.digested_content)
Expand Down

0 comments on commit d184ff7

Please sign in to comment.