fix(lint): 修复 CI 中的 ineffassign 和 unused 代码告警,修正 group 排序集成测试兼容性

This commit is contained in:
IanShaw027
2026-04-09 19:25:08 +08:00
parent 5f8e60a1b7
commit 62962c05f1
8 changed files with 15 additions and 24 deletions

View File

@@ -1109,14 +1109,6 @@ func normalizeTablePreferences(defaultPageSize int, options []int) (int, []int)
return defaultPageSize, normalizedOptions
}
func containsInt(values []int, target int) bool {
for _, value := range values {
if value == target {
return true
}
}
return false
}
// getStringOrDefault 获取字符串值或默认值
func (s *SettingService) getStringOrDefault(settings map[string]string, key, defaultValue string) string {