Skip to content

Commit 3bbc36b

Browse files
committed
Formatting
1 parent a9de7b9 commit 3bbc36b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Sources/GRPCOTelTracingInterceptors/Tracing/SpanAttributes+GRPCTracingKeys.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ package enum PeerAddress: Equatable {
178178
_ = portComponent.popFirst()
179179

180180
if let firstBracket = hostComponent.popFirst(), let lastBracket = hostComponent.popLast(),
181-
firstBracket == UInt8(ascii: "["), lastBracket == UInt8(ascii: "]"),
182-
let host = String(hostComponent), let port = Int(utf8View: portComponent) {
181+
firstBracket == UInt8(ascii: "["), lastBracket == UInt8(ascii: "]"),
182+
let host = String(hostComponent), let port = Int(utf8View: portComponent)
183+
{
183184
self = .ipv6(address: host, port: port)
184185
} else {
185186
// This is some unexpected/unknown format
@@ -200,7 +201,7 @@ extension Int {
200201
var value = 0
201202
for utf8Element in utf8View {
202203
value &*= 10
203-
let elementValue = Int(utf8Element - 48) // ASCII code for 0 is 48
204+
let elementValue = Int(utf8Element - 48) // ASCII code for 0 is 48
204205
guard elementValue >= 0, elementValue <= 9 else {
205206
// non-digit character
206207
return nil

0 commit comments

Comments
 (0)