Skip to content

Commit 0df8bcd

Browse files
author
Paddy Carver
committed
We're allowed to use our deprecated types.
1 parent a21d18c commit 0df8bcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tfprotov5/internal/toproto/resource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func PlanResourceChange_Request(in *tfprotov5.PlanResourceChangeRequest) (*tfplu
9898
func PlanResourceChange_Response(in *tfprotov5.PlanResourceChangeResponse) (*tfplugin5.PlanResourceChange_Response, error) {
9999
resp := &tfplugin5.PlanResourceChange_Response{
100100
PlannedPrivate: in.PlannedPrivate,
101-
LegacyTypeSystem: in.UnsafeToUseLegacyTypeSystem,
101+
LegacyTypeSystem: in.UnsafeToUseLegacyTypeSystem, //nolint:staticcheck
102102
}
103103
requiresReplace, err := AttributePaths(in.RequiresReplace)
104104
if err != nil {
@@ -139,7 +139,7 @@ func ApplyResourceChange_Request(in *tfprotov5.ApplyResourceChangeRequest) (*tfp
139139
func ApplyResourceChange_Response(in *tfprotov5.ApplyResourceChangeResponse) (*tfplugin5.ApplyResourceChange_Response, error) {
140140
resp := &tfplugin5.ApplyResourceChange_Response{
141141
Private: in.Private,
142-
LegacyTypeSystem: in.UnsafeToUseLegacyTypeSystem,
142+
LegacyTypeSystem: in.UnsafeToUseLegacyTypeSystem, //nolint:staticcheck
143143
}
144144
diags, err := Diagnostics(in.Diagnostics)
145145
if err != nil {

0 commit comments

Comments
 (0)