Skip to content

Commit

Permalink
Avoid nulls in DeoVR responses
Browse files Browse the repository at this point in the history
  • Loading branch information
cld9x authored and cld9x committed Dec 3, 2020
1 parent 5ed8e7a commit c08fccf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/deovr.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ func getBaseURL() string {
func scenesToDeoList(req *restful.Request, scenes []models.Scene) []DeoListItem {
baseURL := "http://" + req.Request.Host

var list []DeoListItem
list := make([]DeoListItem, 0)
for i := range scenes {
item := DeoListItem{
Title: scenes[i].Title,
Expand All @@ -404,7 +404,7 @@ func scenesToDeoList(req *restful.Request, scenes []models.Scene) []DeoListItem
func filesToDeoList(req *restful.Request, files []models.File) []DeoListItem {
baseURL := "http://" + req.Request.Host

var list []DeoListItem
list := make([]DeoListItem, 0)
for i := range files {
if files[i].Volume.Type == "local" {
if !files[i].Volume.IsAvailable {
Expand Down

0 comments on commit c08fccf

Please sign in to comment.