Skip to content

Commit 9bd9e82

Browse files
committed
minor lint fix
1 parent 06606bf commit 9bd9e82

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

cloudfoundry/provider/list_resource_space.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (r *spaceListResource) ListResourceConfigSchema(
6666
}
6767
}
6868

69-
// List streams all space within an organization from the API
69+
// List streams all space within an organization from the API.
7070
func (r *spaceListResource) List(
7171
ctx context.Context,
7272
req list.ListRequest,

cloudfoundry/provider/list_resource_space_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ func TestSpaceListResource(t *testing.T) {
8989
})
9090

9191
t.Run("error path - configure", func(t *testing.T) {
92-
r := NewSpaceListResource().(list.ListResourceWithConfigure)
92+
r, ok := NewSpaceListResource().(list.ListResourceWithConfigure)
93+
if !ok {
94+
t.Fatalf("Resource does not implement ListResourceWithConfigure")
95+
}
9396
resp := &res.ConfigureResponse{}
9497
req := res.ConfigureRequest{
9598
ProviderData: struct{}{}, // Wrong type

0 commit comments

Comments
 (0)