This is an automated email from the ASF dual-hosted git repository.
laskoviymishka pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-go.git
The following commit(s) were added to refs/heads/main by this push:
new b841c6d12 style(catalog/dynamodb): gofumpt the integration test
transport (#2621)
b841c6d12 is described below
commit b841c6d12c7022dd8c4ae559e2583b14870d2d01
Author: Andrei Tserakhau <[email protected]>
AuthorDate: Tue Nov 17 19:54:08 2026 +0100
style(catalog/dynamodb): gofumpt the integration test transport (#2621)
The namespace index stub in namespaceQueryTransport.RoundTrip builds its
http.Response literal across two lines without breaking after the opening
brace, which gofumpt rejects. It landed with the DynamoDB catalog in #2535.
CI misses it because golangci-lint run only loads files for the default
build tags and this file is behind the integration tag, but golangci-lint
fmt walks every file and flags it locally.
Reflow the literal the way golangci-lint fmt v2.14.0 (the version pinned in
go-ci.yml) produces it. No behavior change.
---
catalog/dynamodb/dynamodb_integration_test.go | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/catalog/dynamodb/dynamodb_integration_test.go
b/catalog/dynamodb/dynamodb_integration_test.go
index 9876014c3..7e84148de 100644
--- a/catalog/dynamodb/dynamodb_integration_test.go
+++ b/catalog/dynamodb/dynamodb_integration_test.go
@@ -294,8 +294,10 @@ func (tr *namespaceQueryTransport) RoundTrip(request
*http.Request) (*http.Respo
if input.IndexName == namespaceIndex {
tr.indexQueries.Add(1)
if tr.indexResponse != "" {
- return &http.Response{StatusCode:
http.StatusOK, Header: http.Header{"Content-Type":
{"application/x-amz-json-1.0"}},
- Body:
io.NopCloser(strings.NewReader(tr.indexResponse)), Request: request}, nil
+ return &http.Response{
+ StatusCode: http.StatusOK, Header:
http.Header{"Content-Type": {"application/x-amz-json-1.0"}},
+ Body:
io.NopCloser(strings.NewReader(tr.indexResponse)), Request: request,
+ }, nil
}
}
}