If tag storage is an empty string return back an empty slice. Fixes #974
This commit is contained in:
parent
381daaec9b
commit
83ad6db394
@ -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…
x
Reference in New Issue
Block a user