From 4ce008d7d35237a40619e24d0d045bdcb3752cd3 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Sat, 17 Feb 2024 02:21:11 +1100 Subject: [PATCH] log/slog: correct formatting Code added in CL #558755 and CL #561315 (both via github) were not appropriately formatted. Run gofmt to address this. Change-Id: Iaf7abca9c2ad4e0fabecc417234b743b6b15e9c9 Reviewed-on: https://go-review.googlesource.com/c/go/+/564719 Run-TryBot: Joel Sing LUCI-TryBot-Result: Go LUCI Reviewed-by: Than McIntosh TryBot-Result: Gopher Robot Reviewed-by: Jonathan Amsterdam --- src/log/slog/level_test.go | 8 ++++---- src/log/slog/value_test.go | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/log/slog/level_test.go b/src/log/slog/level_test.go index 19adcd8466f..217a0d72049 100644 --- a/src/log/slog/level_test.go +++ b/src/log/slog/level_test.go @@ -59,8 +59,8 @@ func TestLevelMarshalJSON(t *testing.T) { t.Fatal(err) } if !bytes.Equal(data, wantData) { - t.Errorf("got %s, want %s", string(data), string(wantData)) - } + t.Errorf("got %s, want %s", string(data), string(wantData)) + } var got Level if err := got.UnmarshalJSON(data); err != nil { t.Fatal(err) @@ -78,8 +78,8 @@ func TestLevelMarshalText(t *testing.T) { t.Fatal(err) } if !bytes.Equal(data, wantData) { - t.Errorf("got %s, want %s", string(data), string(wantData)) - } + t.Errorf("got %s, want %s", string(data), string(wantData)) + } var got Level if err := got.UnmarshalText(data); err != nil { t.Fatal(err) diff --git a/src/log/slog/value_test.go b/src/log/slog/value_test.go index df83da4d692..033f945407e 100644 --- a/src/log/slog/value_test.go +++ b/src/log/slog/value_test.go @@ -37,9 +37,9 @@ func TestValueEqual(t *testing.T) { GroupValue(Bool("b", true), Int("i", 4)), GroupValue(Bool("b", true), Int("j", 4)), DurationValue(3 * time.Second), - DurationValue(2 * time.Second), - StringValue("foo"), - StringValue("fuu"), + DurationValue(2 * time.Second), + StringValue("foo"), + StringValue("fuu"), } for i, v1 := range vals { for j, v2 := range vals {