Browse code

builder/dockerfile/mockbackend_test.go: suppress SA9005 (staticcheck)

```
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>

Sebastiaan van Stijn authored on 2019/10/12 22:48:28
Showing 1 changed files
... ...
@@ -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 {