Commit 2e9866d
authored
prevent unused variable error (#101)
A [previous commit][0] that changed the ACK pkg/resource templates
introduced an error for controllers that have CREATE or UPDATE
implementations where the Output shape from the operation sets no fields
on the CR.
In these cases, attempting to build these controllers was resulting in a
build failure, like this for the RDS controller:
```
pkg/resource/db_parameter_group/sdk.go:205:6: resp declared but not used
```
This corrects that by using a blanking technique immediately after the
variable declaration:
```
var resp *SomeSDKShape; _ = resp;
```
[0]: a42b4a1
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.1 parent 38e309d commit 2e9866d
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments