refactor: add empty metadata struct constructors
This commit is contained in:
parent
2b3a5c98c2
commit
62bc189678
|
@ -24,3 +24,6 @@ func NewMediaMetadata(name string, details MediaMetadataDetails, parents []Metad
|
||||||
ExtraMetadata: extraMetadata,
|
ExtraMetadata: extraMetadata,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
func NewEmptyMediaMetadata() *MediaMetadata {
|
||||||
|
return &MediaMetadata{}
|
||||||
|
}
|
||||||
|
|
|
@ -22,3 +22,6 @@ func NewWebAppMetadata(name string, tryFiles []string, extraMetadata ExtraMetada
|
||||||
Paths: paths,
|
Paths: paths,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
func NewEmptyWebAppMetadata() *WebAppMetadata {
|
||||||
|
return &WebAppMetadata{}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue