From 134906451b741cc07008086004972c77ac4bbd49 Mon Sep 17 00:00:00 2001 From: Andrew Nesbitt Date: Sun, 18 Oct 2026 21:11:43 +0100 Subject: [PATCH] Check gofmt in CI and reformat Claude-Session: https://claude.ai/code/session_01NxsA75HBjdWQKcdx7FDTDc --- .golangci.yml | 4 ++++ internal/handler/npm_test.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 9d4b9576..57c0f695 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -26,3 +26,7 @@ linters: - goconst - dupl - mnd + +formatters: + enable: + - gofmt diff --git a/internal/handler/npm_test.go b/internal/handler/npm_test.go index a1ad53d2..f71c59c6 100644 --- a/internal/handler/npm_test.go +++ b/internal/handler/npm_test.go @@ -1065,7 +1065,7 @@ func TestNPMMetadataPath(t *testing.T) { func TestNPMVersionMetadataKeepsVersionSegment(t *testing.T) { tests := []struct { request, upstreamPath, wantTarball string - body string + body string }{ { request: "/lodash/4.17.21",