Commit 3fb4a2b0 authored by Edric Li's avatar Edric Li
Browse files

style: replace interface{} with any per golangci-lint rules

parent 0772cdda
...@@ -112,7 +112,7 @@ func (s *SettingService) SetVersion(version string) { ...@@ -112,7 +112,7 @@ func (s *SettingService) SetVersion(version string) {
// GetPublicSettingsForInjection returns public settings in a format suitable for HTML injection // GetPublicSettingsForInjection returns public settings in a format suitable for HTML injection
// This implements the web.PublicSettingsProvider interface // This implements the web.PublicSettingsProvider interface
func (s *SettingService) GetPublicSettingsForInjection(ctx context.Context) (interface{}, error) { func (s *SettingService) GetPublicSettingsForInjection(ctx context.Context) (any, error) {
settings, err := s.GetPublicSettings(ctx) settings, err := s.GetPublicSettings(ctx)
if err != nil { if err != nil {
return nil, err return nil, err
......
...@@ -14,7 +14,7 @@ import ( ...@@ -14,7 +14,7 @@ import (
// PublicSettingsProvider is an interface to fetch public settings // PublicSettingsProvider is an interface to fetch public settings
// This stub is needed for compilation when frontend is not embedded // This stub is needed for compilation when frontend is not embedded
type PublicSettingsProvider interface { type PublicSettingsProvider interface {
GetPublicSettingsForInjection(ctx context.Context) (interface{}, error) GetPublicSettingsForInjection(ctx context.Context) (any, error)
} }
// FrontendServer is a stub for non-embed builds // FrontendServer is a stub for non-embed builds
......
...@@ -21,7 +21,7 @@ var frontendFS embed.FS ...@@ -21,7 +21,7 @@ var frontendFS embed.FS
// PublicSettingsProvider is an interface to fetch public settings // PublicSettingsProvider is an interface to fetch public settings
type PublicSettingsProvider interface { type PublicSettingsProvider interface {
GetPublicSettingsForInjection(ctx context.Context) (interface{}, error) GetPublicSettingsForInjection(ctx context.Context) (any, error)
} }
// FrontendServer serves the embedded frontend with settings injection // FrontendServer serves the embedded frontend with settings injection
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment