From 2dc52161142ef82f8d31d09de9af881606555c8e Mon Sep 17 00:00:00 2001 From: Michael Hoffmann Date: Tue, 25 Oct 2022 00:11:23 +0200 Subject: [PATCH] Format --- interfaces.go | 12 ++++++------ scope_test.go | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/interfaces.go b/interfaces.go index 5be178aaf..36674724e 100644 --- a/interfaces.go +++ b/interfaces.go @@ -94,12 +94,12 @@ func (b *Breadcrumb) MarshalJSON() ([]byte, error) { // an ID or an IP address should be provided. type User struct { Data map[string]string `json:"data,omitempty"` - Email string `json:"email,omitempty"` - ID string `json:"id,omitempty"` - IPAddress string `json:"ip_address,omitempty"` - Name string `json:"name,omitempty"` - Segment string `json:"segment,omitempty"` - Username string `json:"username,omitempty"` + Email string `json:"email,omitempty"` + ID string `json:"id,omitempty"` + IPAddress string `json:"ip_address,omitempty"` + Name string `json:"name,omitempty"` + Segment string `json:"segment,omitempty"` + Username string `json:"username,omitempty"` } // Request contains information on a HTTP request related to the event. diff --git a/scope_test.go b/scope_test.go index cf003d206..d6799cc0d 100644 --- a/scope_test.go +++ b/scope_test.go @@ -37,8 +37,8 @@ func fillEventWithData(event *Event) *Event { func TestScopeSetUser(t *testing.T) { scope := NewScope() - scope.SetUser(User{Data: map[string]string{"foo": "bar"}, Email: "foo@example.com", ID: "foo", IPAddress: "127.0.0.1", Name: "My Name", Segment: "My Segment", Username: "My Username"}) - assertEqual(t, User{Data: map[string]string{"foo": "bar"}, Email: "foo@example.com", ID: "foo", IPAddress: "127.0.0.1", Name: "My Name", Segment: "My Segment", Username: "My Username"}, scope.user) + scope.SetUser(User{Data: map[string]string{"foo": "bar"}, Email: "foo@example.com", ID: "foo", IPAddress: "127.0.0.1", Name: "My Name", Segment: "My Segment", Username: "My Username"}) + assertEqual(t, User{Data: map[string]string{"foo": "bar"}, Email: "foo@example.com", ID: "foo", IPAddress: "127.0.0.1", Name: "My Name", Segment: "My Segment", Username: "My Username"}, scope.user) } func TestScopeSetUserOverrides(t *testing.T) {