```
builder/dockerfile/mockbackend_test.go:107:21: SA9005: struct doesn't have any exported fields, nor custom marshaling (staticcheck)
return json.Marshal(rawImage(*i))
^
```
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -104,7 +104,7 @@ func (i *mockImage) OperatingSystem() string {
|
| 104 | 104 |
|
| 105 | 105 |
func (i *mockImage) MarshalJSON() ([]byte, error) {
|
| 106 | 106 |
type rawImage mockImage |
| 107 |
- return json.Marshal(rawImage(*i)) |
|
| 107 |
+ return json.Marshal(rawImage(*i)) //nolint:staticcheck |
|
| 108 | 108 |
} |
| 109 | 109 |
|
| 110 | 110 |
type mockImageCache struct {
|