Skip to content

Commit 5c4ba54

Browse files
committed
Simplify parsed compression option
Now that options are normalised before hashing, we can always set this option.
1 parent 24c1116 commit 5c4ba54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/mudbrick/parser.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ defmodule Mudbrick.Parser do
4040
images = decompressed_resources_option(image_files, "I")
4141
compress? = Enum.any?(items, &match?(%{value: %{compress: true}}, &1))
4242

43-
opts = if compress?, do: [compress: true], else: []
43+
opts = [compress: compress?]
4444
opts = if map_size(fonts) > 0, do: Keyword.put(opts, :fonts, fonts), else: opts
4545
opts = if map_size(images) > 0, do: Keyword.put(opts, :images, images), else: opts
4646

0 commit comments

Comments
 (0)