Skip to content

Commit ee50ee7

Browse files
committed
tidy: consistent comments
1 parent c4204ce commit ee50ee7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

internal/fwserver/server_getmetadata.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ func (s *Server) GetMetadata(ctx context.Context, req *GetMetadataRequest, resp
8383
resp.Diagnostics.Append(diags...)
8484

8585
// Metadata for list resources must be retrieved after metadata for managed
86-
// resources. Server.ListResourceMetadatas checks that each list resource
87-
// type nane matches a known managed Resource type name.
86+
// resources. Server.ListResourceFuncs checks that each list resource type
87+
// name matches a known managed resource type name.
8888
listResourceMetadatas, diags := s.ListResourceMetadatas(ctx)
8989
resp.Diagnostics.Append(diags...)
9090

internal/fwserver/server_getproviderschema.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ func (s *Server) GetProviderSchema(ctx context.Context, req *GetProviderSchemaRe
7575
}
7676
resp.EphemeralResourceSchemas = ephemeralResourceSchemas
7777

78+
// Schemas for list resources must be retrieved after schemas for managed
79+
// resources. Server.ListResourceFuncs checks that each list resource type
80+
// name matches a known managed resource type name.
7881
listResourceSchemas, diags := s.ListResourceSchemas(ctx)
7982
resp.Diagnostics.Append(diags...)
8083
if resp.Diagnostics.HasError() {

0 commit comments

Comments
 (0)