fix(style): replace Map.get with dot access and pattern matching where keys are guaranteed (CSM-032)
This commit is contained in:
@@ -75,7 +75,7 @@ defmodule BDS.Generation.Sitemap do
|
||||
page_path = Paths.relative_path_to_url_path(Paths.page_output_path(post.slug, nil))
|
||||
|
||||
languages =
|
||||
if Paths.truthy_flag?(Map.get(post, :do_not_translate)),
|
||||
if Paths.truthy_flag?(post.do_not_translate),
|
||||
do: [plan.language],
|
||||
else: all_languages
|
||||
|
||||
|
||||
Reference in New Issue
Block a user