0

If tag storage is an empty string return back an empty slice. Fixes #974

This commit is contained in:
Gabe Kangas 2021-05-22 21:32:56 -07:00
parent 381daaec9b
commit 83ad6db394

View File

@ -213,6 +213,10 @@ func SetRTMPPortNumber(port float64) error {
// GetServerMetadataTags will return the metadata tags. // GetServerMetadataTags will return the metadata tags.
func GetServerMetadataTags() []string { func GetServerMetadataTags() []string {
tagsString, err := _datastore.GetString(serverMetadataTagsKey) tagsString, err := _datastore.GetString(serverMetadataTagsKey)
if tagsString == "" {
return []string{}
}
if err != nil { if err != nil {
log.Traceln(serverMetadataTagsKey, err) log.Traceln(serverMetadataTagsKey, err)
return []string{} return []string{}