Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
Fix existing goconst linter issues:
pkg/admission/webhook_manager.go:385:21: string `yunikorn` has 3 occurrences, but such constant `yunikornPod` already exists (goconst) if !ok || value != "yunikorn" { ^ pkg/cache/context_test.go:245:12: string `app00002` has 3 occurrences, make it a constant (goconst) appID2 := "app00002" ^ pkg/cache/application_test.go:166:11: string `app-test-001` has 6 occurrences, but such constant `appID` already exists (goconst) appID := "app-test-001" ^ pkg/cache/application_test.go:447:10: string `testUUID001` has 3 occurrences, make it a constant (goconst) UUID := "testUUID001" ^ pkg/cache/application.go:104:34: string `no transition` has 3 occurrences, make it a constant (goconst) if err != nil && err.Error() != "no transition" { ^ pkg/cache/application_test.go:533:11: string `app00001` has 5 occurrences, but such constant `appID` already exists (goconst) appID := "app00001" ^
Attachments
Issue Links
- links to