Skip to content

Commit 6efe214

Browse files
Trevörartemredkin
Trevör
authored andcommitted
Remove spaces in range operators (#104)
1 parent 2d7ae2b commit 6efe214

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.swiftformat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
--patternlet inline
99
--stripunusedargs unnamed-only
1010
--comments ignore
11+
--ranges nospace
1112

1213
# rules

Sources/AsyncHTTPClient/HTTPClientProxyHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ internal final class HTTPClientProxyHandler: ChannelDuplexHandler, RemovableChan
9696
switch res {
9797
case .head(let head):
9898
switch head.status.code {
99-
case 200 ..< 300:
99+
case 200..<300:
100100
// Any 2xx (Successful) response indicates that the sender (and all
101101
// inbound proxies) will switch to tunnel mode immediately after the
102102
// blank line that concludes the successful response's header section

Tests/AsyncHTTPClientTests/HTTPClientTestUtils.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ internal final class HttpBinHandler: ChannelInboundHandler {
299299
return
300300
case "/events/10/1": // TODO: parse path
301301
context.write(wrapOutboundOut(.head(HTTPResponseHead(version: HTTPVersion(major: 1, minor: 1), status: .ok))), promise: nil)
302-
for i in 0 ..< 10 {
302+
for i in 0..<10 {
303303
let msg = "id: \(i)"
304304
var buf = context.channel.allocator.buffer(capacity: msg.count)
305305
buf.writeString(msg)

0 commit comments

Comments
 (0)