Skip to content

Commit 8868766

Browse files
PJUllrichjosevalim
andauthored
Replace Map.get with Map.fetch!
Co-authored-by: José Valim <jose.valim@gmail.com>
1 parent dde36b4 commit 8868766

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/eex/lib/eex/compiler.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ defmodule EEx.Compiler do
479479
# Changes placeholder to real expression
480480

481481
defp insert_quoted({:__EEX__, _, [key]}, quoted) do
482-
Map.get(quoted, key)
482+
Map.fetch!(quoted, key)
483483
end
484484

485485
defp insert_quoted({left, line, right}, quoted) do

0 commit comments

Comments
 (0)