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
b37afd68
"backend/ent/git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "c520de11de6172e018abbdfdd096c3cfc653e771"
Commit
b37afd68
authored
Apr 09, 2026
by
IanShaw027
Browse files
fix(lint): format setting service
parent
62962c05
Changes
1
Show whitespace changes
Inline
Side-by-side
backend/internal/service/setting_service.go
View file @
b37afd68
...
@@ -1109,7 +1109,6 @@ func normalizeTablePreferences(defaultPageSize int, options []int) (int, []int)
...
@@ -1109,7 +1109,6 @@ func normalizeTablePreferences(defaultPageSize int, options []int) (int, []int)
return
defaultPageSize
,
normalizedOptions
return
defaultPageSize
,
normalizedOptions
}
}
// getStringOrDefault 获取字符串值或默认值
// getStringOrDefault 获取字符串值或默认值
func
(
s
*
SettingService
)
getStringOrDefault
(
settings
map
[
string
]
string
,
key
,
defaultValue
string
)
string
{
func
(
s
*
SettingService
)
getStringOrDefault
(
settings
map
[
string
]
string
,
key
,
defaultValue
string
)
string
{
if
value
,
ok
:=
settings
[
key
];
ok
&&
value
!=
""
{
if
value
,
ok
:=
settings
[
key
];
ok
&&
value
!=
""
{
...
...
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