refactor: remove unused ClientSecret constant

The ClientSecret constant was left as an empty string after
getClientSecret() was refactored to use defaultClientSecret.
Remove the dead constant and update the test accordingly.
This commit is contained in:
erio
2026-02-24 21:09:46 +08:00
parent b6fa8b8eec
commit d616f8c854
2 changed files with 1 additions and 6 deletions

View File

@@ -680,9 +680,6 @@ func TestConstants_值正确(t *testing.T) {
if ClientID != "1071006060591-tmhssin2h21lcre235vtolojh4g403ep.apps.googleusercontent.com" {
t.Errorf("ClientID 不匹配: got %s", ClientID)
}
if ClientSecret != "" {
t.Error("ClientSecret 常量应为空字符串(默认值已移至 defaultClientSecret")
}
secret, err := getClientSecret()
if err != nil {
t.Fatalf("getClientSecret 应返回默认值,但报错: %v", err)