Skip to content

Commit 3de2206

Browse files
author
Mohammed Ehab
committed
Lint
1 parent 06a9683 commit 3de2206

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lambda/invoke_loop_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ func TestContextDeserializationErrors(t *testing.T) {
389389
}`, string(record.responses[2]))
390390
}
391391

392-
func TestClientContextWithNestedCustomValues(t *testing.T) {
392+
func TestClientContextWithNestedCustomValues(t *testing.T) {
393393
metadata := defaultInvokeMetadata()
394394
metadata.clientContext = `{
395395
"Client": {
@@ -403,7 +403,7 @@ func TestContextDeserializationErrors(t *testing.T) {
403403
"bedrockAgentCorePropagatedHeaders": {"x-id": "my-custom-id"}
404404
}
405405
}`
406-
406+
407407
ts, record := runtimeAPIServer(`{}`, 1, metadata)
408408
defer ts.Close()
409409
handler := NewHandler(func(ctx context.Context) (interface{}, error) {
@@ -412,7 +412,7 @@ func TestContextDeserializationErrors(t *testing.T) {
412412
})
413413
endpoint := strings.Split(ts.URL, "://")[1]
414414
_ = startRuntimeAPILoop(endpoint, handler)
415-
415+
416416
expected := `{
417417
"Client": {
418418
"installation_id": "install1",

lambdacontext/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ type ClientContext struct {
7575
// their JSON string representation.
7676
func (cc *ClientContext) UnmarshalJSON(data []byte) error {
7777
var raw struct {
78-
Client ClientApplication `json:"Client"`
78+
Client ClientApplication `json:"Client"`
7979
Env map[string]string `json:"env"`
8080
Custom map[string]json.RawMessage `json:"custom"`
8181
}

0 commit comments

Comments
 (0)