fix: 修复 golangci-lint 报告的 5 个问题

- gofmt: 修复 admin_service/antigravity_oauth_service/token_refresh_service 格式
- staticcheck S1009: 移除 SetUserSettingsResponse.IsSuccess 中冗余的 nil 检查
- unused: 将仅测试使用的 applyAntigravitySubscriptionResult 移至测试文件

Made-with: Cursor
This commit is contained in:
QTom
2026-03-25 19:03:12 +08:00
parent f6fd7c83e3
commit 975e6b1563
6 changed files with 29 additions and 29 deletions

View File

@@ -767,7 +767,7 @@ func (r *SetUserSettingsResponse) IsSuccess() bool {
return false
}
// userSettings 为 nil 或空 map 均视为成功
if r.UserSettings == nil || len(r.UserSettings) == 0 {
if len(r.UserSettings) == 0 {
return true
}
// 如果包含 telemetryEnabled 字段,说明未成功清除