From 6c3af96077a2ec8ee7dc3b6da81d2d464d64c575 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 3 Mar 2024 03:40:23 -0500 Subject: [PATCH] refactor: make WebAppFileMap a pointer in WebAppMetadata --- metadata/web_app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metadata/web_app.go b/metadata/web_app.go index ac77183..260180c 100644 --- a/metadata/web_app.go +++ b/metadata/web_app.go @@ -21,10 +21,10 @@ type WebAppMetadata struct { TryFiles []string `json:"tryFiles"` ErrorPages map[int]string `json:"errorPages"` ExtraMetadata ExtraMetadata `json:"extraMetadata"` - Paths WebAppFileMap `json:"paths"` + Paths *WebAppFileMap `json:"paths"` } -func NewWebAppMetadata(name string, tryFiles []string, extraMetadata ExtraMetadata, errorPages map[int]string, paths WebAppFileMap) *WebAppMetadata { +func NewWebAppMetadata(name string, tryFiles []string, extraMetadata ExtraMetadata, errorPages map[int]string, paths *WebAppFileMap) *WebAppMetadata { return &WebAppMetadata{ Name: name, TryFiles: tryFiles,