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>
This commit is contained in:
parent
19a4fa7bf1
commit
301a2fbeca
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ func (i *mockImage) OperatingSystem() string {
|
||||||
|
|
||||||
func (i *mockImage) MarshalJSON() ([]byte, error) {
|
func (i *mockImage) MarshalJSON() ([]byte, error) {
|
||||||
type rawImage mockImage
|
type rawImage mockImage
|
||||||
return json.Marshal(rawImage(*i))
|
return json.Marshal(rawImage(*i)) //nolint:staticcheck
|
||||||
}
|
}
|
||||||
|
|
||||||
type mockImageCache struct {
|
type mockImageCache struct {
|
||||||
|
|
Loading…
Reference in a new issue