Only compute version once

This commit is contained in:
Deluan
2022-09-14 21:09:39 -04:00
parent ebad96b8a4
commit 4cf43ed735
8 changed files with 20 additions and 10 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ import (
)
func newResponse() *responses.Subsonic {
return &responses.Subsonic{Status: "ok", Version: Version, Type: consts.AppName, ServerVersion: consts.Version()}
return &responses.Subsonic{Status: "ok", Version: Version, Type: consts.AppName, ServerVersion: consts.Version}
}
func requiredParamString(r *http.Request, param string) (string, error) {