Skip to content

Commit 883d827

Browse files
Apply suggested fix to internal/templates/apply.go from Copilot Autofix
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> Signed-off-by: Manuel Alejandro de Brito Fontes <aledbf@gmail.com>
1 parent da8b751 commit 883d827

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎internal/templates/apply.go‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,12 @@ func applyOptionDefaults(fsys pfs.FS, extractDir string, userOptions map[string]
262262
if err != nil {
263263
return merged
264264
}
265+
standardized, err := hujson.Standardize(data)
266+
if err != nil {
267+
return merged
268+
}
265269
var meta TemplateMetadata
266-
if err := json.Unmarshal(data, &meta); err != nil {
270+
if err := json.Unmarshal(standardized, &meta); err != nil {
267271
return merged
268272
}
269273
for key, raw := range meta.Options {

0 commit comments

Comments
 (0)