Skip to content

Commit

Permalink
Use swiftformat 0.48.17 (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Oct 30, 2021
1 parent ec85fe3 commit 6795503
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
- name: Install Dependencies
run: |
brew install mint
mint install NickLockwood/SwiftFormat@0.47.13 --no-link
mint install NickLockwood/SwiftFormat@0.48.17 --no-link
- name: run script
run: ./scripts/sanity.sh
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ The main development branch of the repository is `main`.

### Formatting

We use Nick Lockwood's SwiftFormat for formatting code. PRs will not be accepted if they haven't be formatted. The current version of SwiftFormat we are using is v0.47.13.
We use Nick Lockwood's SwiftFormat for formatting code. PRs will not be accepted if they haven't be formatted. The current version of SwiftFormat we are using is v0.48.17.
4 changes: 2 additions & 2 deletions Sources/HummingbirdCore/Server/HTTPServerHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ final class HBHTTPServerHandler: ChannelDuplexHandler, RemovableChannelHandler {
case (.end, .head(let head)):
self.state = .idle
let request = HBHTTPRequest(head: head, body: .byteBuffer(nil))
readRequest(context: context, request: request)
self.readRequest(context: context, request: request)

case (.end, .body(let head, let buffer)):
self.state = .idle
let request = HBHTTPRequest(head: head, body: .byteBuffer(buffer))
readRequest(context: context, request: request)
self.readRequest(context: context, request: request)

case (.end, .streamingBody(let streamer)):
self.state = .idle
Expand Down
2 changes: 1 addition & 1 deletion scripts/sanity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
##
##===----------------------------------------------------------------------===##

SWIFT_FORMAT_VERSION=0.47.13
SWIFT_FORMAT_VERSION=0.48.17

set -eu
here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Expand Down

0 comments on commit 6795503

Please sign in to comment.