remove globals

This commit is contained in:
sentriz
2020-05-07 03:24:50 +01:00
parent 9bf80f4b18
commit ee9335f71e
11 changed files with 188 additions and 163 deletions
+1
View File
@@ -236,6 +236,7 @@ type Flash struct {
Type FlashType
}
//nolint:gochecknoinits
func init() {
gob.Register(&Flash{})
}
+1 -1
View File
@@ -82,7 +82,7 @@ func (c *Controller) ServeHome(r *http.Request) *Response {
c.DB.
Where("user_id=?", user.ID).
Find(&data.TranscodePreferences)
for profile := range encode.Profiles {
for profile := range encode.Profiles() {
data.TranscodeProfiles = append(data.TranscodeProfiles, profile)
}
//