Skip to content

Commit d18edd0

Browse files
committed
Tidy
1 parent 38660df commit d18edd0

File tree

5 files changed

+2
-7
lines changed

5 files changed

+2
-7
lines changed

internal/fwserver/server_listresource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,5 +140,5 @@ func processListResult(req list.ListRequest, result list.ListResult) ListResult
140140
}
141141
}
142142

143-
return ListResult(result) // TODO: do we want to .Copy() the raw Identity and Resource values?
143+
return ListResult(result)
144144
}

internal/proto5server/serve.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
)
1313

1414
var _ tfprotov5.ProviderServer = &Server{}
15-
var _ tfprotov5.ProviderServerWithListResource = &Server{} //nolint:staticcheck
1615

1716
// Provider server implementation.
1817
type Server struct {

internal/proto6server/serve.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
)
1313

1414
var _ tfprotov6.ProviderServer = &Server{}
15-
var _ tfprotov6.ProviderServerWithListResource = &Server{} //nolint:staticcheck
1615

1716
// Provider server implementation.
1817
type Server struct {

list/list_resource.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@ type ListResultsStream struct {
117117
// To indicate a fatal processing error, push a [ListResult] that contains
118118
// a [diag.ErrorDiagnostic].
119119
Results iter.Seq[ListResult]
120-
121-
// Diagnostics report errors or warnings related to the list operation.
122-
Diagnostics diag.Diagnostics
123120
}
124121

125122
// NoListResults is an iterator that pushes zero results.

tfsdk/resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func (r Resource) PathMatches(ctx context.Context, pathExpr path.Expression) (pa
4444
return r.data().PathMatches(ctx, pathExpr)
4545
}
4646

47-
// Set populates the entire identity using the supplied Go value. The value `val`
47+
// Set populates the entire resource using the supplied Go value. The value `val`
4848
// should be a struct whose values have one of the attr.Value types. Each field
4949
// must be tagged with the corresponding schema field.
5050
func (r *Resource) Set(ctx context.Context, val interface{}) diag.Diagnostics {

0 commit comments

Comments
 (0)