summaryrefslogtreecommitdiff
path: root/pkg/k8s.io/apimachinery
diff options
context:
space:
mode:
authorValentin Rothberg <vrothberg@redhat.com>2022-03-21 15:07:06 +0100
committerValentin Rothberg <vrothberg@redhat.com>2022-03-22 13:04:35 +0100
commit68b94338bac2f3a4ee18f959cc2b214bb22d7fcf (patch)
tree59fbd767bb9b3953778e7c8291aa2444c3a4847c /pkg/k8s.io/apimachinery
parent0f12b6fe55f6b5ce70d8c388ec2df35db9feffbb (diff)
downloadpodman-68b94338bac2f3a4ee18f959cc2b214bb22d7fcf.tar.gz
podman-68b94338bac2f3a4ee18f959cc2b214bb22d7fcf.tar.bz2
podman-68b94338bac2f3a4ee18f959cc2b214bb22d7fcf.zip
linter: enable makezero
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'pkg/k8s.io/apimachinery')
-rw-r--r--pkg/k8s.io/apimachinery/pkg/api/resource/quantity.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/k8s.io/apimachinery/pkg/api/resource/quantity.go b/pkg/k8s.io/apimachinery/pkg/api/resource/quantity.go
index fccddc3e0..352cc028f 100644
--- a/pkg/k8s.io/apimachinery/pkg/api/resource/quantity.go
+++ b/pkg/k8s.io/apimachinery/pkg/api/resource/quantity.go
@@ -579,9 +579,9 @@ func (q Quantity) MarshalJSON() ([]byte, error) {
// if CanonicalizeBytes needed more space than our slice provided, we may need to allocate again so use
// append
result = result[:1]
- result = append(result, number...)
- result = append(result, suffix...)
- result = append(result, '"')
+ result = append(result, number...) // nolint: makezero
+ result = append(result, suffix...) // nolint: makezero
+ result = append(result, '"') // nolint: makezero
return result, nil
}