From a9ac5f9cb5c49ef3c652ddc86aba2be5086ba49d Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Tue, 14 Feb 2023 15:26:08 +0900 Subject: [PATCH] lint: remove `//nolint:dupword` that are no longer needed Signed-off-by: Akihiro Suda --- cmd/containerd-stress/density.go | 1 - pkg/cap/cap_linux_test.go | 1 - 2 files changed, 2 deletions(-) diff --git a/cmd/containerd-stress/density.go b/cmd/containerd-stress/density.go index 05b48c76e..756892917 100644 --- a/cmd/containerd-stress/density.go +++ b/cmd/containerd-stress/density.go @@ -204,7 +204,6 @@ type Stat struct { } func parseStat(data string) (stat Stat, err error) { - //nolint:dupword // From proc(5), field 2 could contain space and is inside `(` and `)`. // The following is an example: // 89653 (gunicorn: maste) S 89630 89653 89653 0 -1 4194560 29689 28896 0 3 146 32 76 19 20 0 1 0 2971844 52965376 3920 18446744073709551615 1 1 0 0 0 0 0 16781312 137447943 0 0 0 17 1 0 0 0 0 0 0 0 0 0 0 0 0 0 diff --git a/pkg/cap/cap_linux_test.go b/pkg/cap/cap_linux_test.go index 229302ba9..26a9142c7 100644 --- a/pkg/cap/cap_linux_test.go +++ b/pkg/cap/cap_linux_test.go @@ -24,7 +24,6 @@ import ( "github.com/stretchr/testify/assert" ) -//nolint:dupword const procPIDStatus = `Name: cat Umask: 0022 State: R (running)