refactor: add empty metadata struct constructors

This commit is contained in:
Derrick Hammer 2024-01-09 08:16:42 -05:00
parent 2b3a5c98c2
commit 62bc189678
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 6 additions and 0 deletions

View File

@ -24,3 +24,6 @@ func NewMediaMetadata(name string, details MediaMetadataDetails, parents []Metad
ExtraMetadata: extraMetadata,
}
}
func NewEmptyMediaMetadata() *MediaMetadata {
return &MediaMetadata{}
}

View File

@ -22,3 +22,6 @@ func NewWebAppMetadata(name string, tryFiles []string, extraMetadata ExtraMetada
Paths: paths,
}
}
func NewEmptyWebAppMetadata() *WebAppMetadata {
return &WebAppMetadata{}
}