Skip to content

Commit

Permalink
remove unneccessary type
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfHammer committed Sep 27, 2024
1 parent 781fb58 commit f1d443c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/cf/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (c *spaceClient) GetBinding(ctx context.Context, bindingOpts map[string]str
if c.resourceCache.checkResourceCacheEnabled() {
// attempt to retrieve binding from cache
if c.resourceCache.isCacheExpired(bindingType) {
populateResourceCache[*spaceClient](c, bindingType, "")
populateResourceCache(c, bindingType, "")
}
binding, inCache := c.resourceCache.getBindingFromCache(bindingOpts["owner"])
if inCache {
Expand Down
2 changes: 1 addition & 1 deletion internal/cf/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (c *spaceClient) GetInstance(ctx context.Context, instanceOpts map[string]s
if c.resourceCache.checkResourceCacheEnabled() {
// attempt to retrieve instance from cache
if c.resourceCache.isCacheExpired(instanceType) {
populateResourceCache[*spaceClient](c, instanceType, "")
populateResourceCache(c, instanceType, "")
}
instance, inCache := c.resourceCache.getInstanceFromCache(instanceOpts["owner"])
if inCache {
Expand Down
4 changes: 2 additions & 2 deletions internal/cf/space.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func (c *organizationClient) GetSpace(ctx context.Context, owner string) (*facad
if c.resourceCache.checkResourceCacheEnabled() {
// attempt to retrieve space from cache
if c.resourceCache.isCacheExpired(spaceType) {
populateResourceCache[*organizationClient](c, spaceType, "")
populateResourceCache(c, spaceType, "")
}
space, inCache := c.resourceCache.getSpaceFromCache(owner)
if inCache {
Expand Down Expand Up @@ -124,7 +124,7 @@ func (c *organizationClient) AddDeveloper(ctx context.Context, guid string, user
if c.resourceCache.checkResourceCacheEnabled() {
// attempt to retrieve space user role from cache
if c.resourceCache.isCacheExpired(spaceUserRoleType) {
populateResourceCache[*organizationClient](c, spaceUserRoleType, username)
populateResourceCache(c, spaceUserRoleType, username)
}
if len(c.resourceCache.getCachedSpaceUserRoles()) != 0 {
_, inCache := c.resourceCache.getSpaceUserRoleFromCache(guid)
Expand Down

0 comments on commit f1d443c

Please sign in to comment.