Skip to content

Commit c05278a

Browse files
committed
Make HasService/GetService sync
1 parent 431dede commit c05278a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/java/common/context.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,9 @@ func GetVCAPServices() (VCAPServices, error) {
152152
}
153153

154154
// HasService checks if a service with the given label exists
155-
// Matching is case-insensitive to handle various service broker conventions
156155
func (v VCAPServices) HasService(label string) bool {
157-
labelLower := strings.ToLower(label)
158156
for key := range v {
159-
if strings.ToLower(key) == labelLower {
157+
if strings.ToLower(key) == label {
160158
return true
161159
}
162160
}

0 commit comments

Comments
 (0)