Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
3fb4a2b0
"backend/internal/handler/vscode:/vscode.git/clone" did not exist on "9151d34d4078a772010f11396e21b4f02fc38c42"
Commit
3fb4a2b0
authored
Jan 10, 2026
by
Edric Li
Browse files
style: replace interface{} with any per golangci-lint rules
parent
0772cdda
Changes
3
Hide whitespace changes
Inline
Side-by-side
backend/internal/service/setting_service.go
View file @
3fb4a2b0
...
...
@@ -112,7 +112,7 @@ func (s *SettingService) SetVersion(version string) {
// GetPublicSettingsForInjection returns public settings in a format suitable for HTML injection
// 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
)
if
err
!=
nil
{
return
nil
,
err
...
...
backend/internal/web/embed_off.go
View file @
3fb4a2b0
...
...
@@ -14,7 +14,7 @@ import (
// PublicSettingsProvider is an interface to fetch public settings
// This stub is needed for compilation when frontend is not embedded
type
PublicSettingsProvider
interface
{
GetPublicSettingsForInjection
(
ctx
context
.
Context
)
(
interface
{}
,
error
)
GetPublicSettingsForInjection
(
ctx
context
.
Context
)
(
any
,
error
)
}
// FrontendServer is a stub for non-embed builds
...
...
backend/internal/web/embed_on.go
View file @
3fb4a2b0
...
...
@@ -21,7 +21,7 @@ var frontendFS embed.FS
// PublicSettingsProvider is an interface to fetch public settings
type
PublicSettingsProvider
interface
{
GetPublicSettingsForInjection
(
ctx
context
.
Context
)
(
interface
{}
,
error
)
GetPublicSettingsForInjection
(
ctx
context
.
Context
)
(
any
,
error
)
}
// FrontendServer serves the embedded frontend with settings injection
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment