From d97fd638bc8c20ca79202d976272c609b1fbc597 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Tue, 21 Oct 2025 08:37:57 +0200 Subject: [PATCH] chore: linter: dupword Signed-off-by: Jakob Borg --- cmd/infra/stcrashreceiver/sentry.go | 2 +- cmd/infra/strelaypoolsrv/main.go | 2 +- cmd/syncthing/crash_reporting.go | 2 +- lib/osutil/atomic.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/infra/stcrashreceiver/sentry.go b/cmd/infra/stcrashreceiver/sentry.go index f8bc22741..ba2874f84 100644 --- a/cmd/infra/stcrashreceiver/sentry.go +++ b/cmd/infra/stcrashreceiver/sentry.go @@ -90,7 +90,7 @@ func sendReport(dsn string, pkt *raven.Packet, userID string) error { } // The client sets release and such on the packet before sending, in the - // misguided idea that it knows this better than than the packet we give + // misguided idea that it knows this better than the packet we give // it. So we copy the values from the packet to the client first... cli.SetRelease(pkt.Release) cli.SetEnvironment(pkt.Environment) diff --git a/cmd/infra/strelaypoolsrv/main.go b/cmd/infra/strelaypoolsrv/main.go index 9950aab62..d016eb2a1 100644 --- a/cmd/infra/strelaypoolsrv/main.go +++ b/cmd/infra/strelaypoolsrv/main.go @@ -180,7 +180,7 @@ func main() { relayTestsTotal.WithLabelValues("success").Inc() } } - // Run the the stats refresher once the relays are loaded. + // Run the stats refresher once the relays are loaded. statsRefresher(statsRefresh) }() diff --git a/cmd/syncthing/crash_reporting.go b/cmd/syncthing/crash_reporting.go index 645214235..6832192e8 100644 --- a/cmd/syncthing/crash_reporting.go +++ b/cmd/syncthing/crash_reporting.go @@ -31,7 +31,7 @@ const ( // directory to the crash reporting server as urlBase. Uploads are attempted // with the newest log first. // -// This can can block for a long time. The context can set a final deadline +// This can block for a long time. The context can set a final deadline // for this. func uploadPanicLogs(ctx context.Context, urlBase, dir string) { files, err := filepath.Glob(filepath.Join(dir, "panic-*.log")) diff --git a/lib/osutil/atomic.go b/lib/osutil/atomic.go index e50057378..ca8f3ded2 100644 --- a/lib/osutil/atomic.go +++ b/lib/osutil/atomic.go @@ -44,7 +44,7 @@ func CreateAtomic(path string) (*AtomicWriter, error) { func CreateAtomicFilesystem(filesystem fs.Filesystem, path string) (*AtomicWriter, error) { // The security of this depends on the tempfile having secure // permissions, 0600, from the beginning. This is what os.CreateTemp - // does. We have a test that verifies that that is the case, should this + // does. We have a test that verifies that this is the case, should this // ever change in the standard library in the future. fd, err := TempFile(filesystem, filepath.Dir(path), TempPrefix) if err != nil {