We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 431dede commit c05278aCopy full SHA for c05278a
1 file changed
src/java/common/context.go
@@ -152,11 +152,9 @@ func GetVCAPServices() (VCAPServices, error) {
152
}
153
154
// HasService checks if a service with the given label exists
155
-// Matching is case-insensitive to handle various service broker conventions
156
func (v VCAPServices) HasService(label string) bool {
157
- labelLower := strings.ToLower(label)
158
for key := range v {
159
- if strings.ToLower(key) == labelLower {
+ if strings.ToLower(key) == label {
160
return true
161
162
0 commit comments