Browse Source

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

pull/1048/head
Gabe Kangas 5 years ago
parent
commit
83ad6db394
  1. 4
      core/data/config.go

4
core/data/config.go

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

Loading…
Cancel
Save