Skip to content

Commit 95cdbe9

Browse files
committed
style: set attribute in one line
1 parent f7ec4e5 commit 95cdbe9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

internal/api/auth.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ func (a API) Authv1(c *fiber.Ctx) error {
4747

4848
auth := a.Authenticator(vendor)
4949

50-
span.SetAttributes(
51-
attribute.String("authenticator", auth.GetCompany()),
52-
)
50+
span.SetAttributes(attribute.String("authenticator", auth.GetCompany()))
5351

5452
err := auth.Auth(token)
5553
if err != nil {
@@ -111,9 +109,7 @@ func (a API) Authv2(c *fiber.Ctx) error {
111109

112110
auth := a.Authenticator(vendor)
113111

114-
span.SetAttributes(
115-
attribute.String("authenticator", auth.GetCompany()),
116-
)
112+
span.SetAttributes(attribute.String("authenticator", auth.GetCompany()))
117113

118114
err := auth.Auth(token)
119115
if err != nil {

0 commit comments

Comments
 (0)