remove redundant labels

Motivation:

Lots of our most important operations had redundant labels like

    func write(data: NIOAny)

the `data: ` label doesn't add anything meaningful and therefore it
should be removed.

Modifications:

removed lots of redundant labels

Result:

less redundant labels
This commit is contained in:
Johannes Weiss committed 2018-02-13 11:13:30 +00:00
1 parent dba0a5379c
commit eaa8ffaee4
35 files changed
+335 -335

No files matched your search

@@ -32,7 +32,7 @@ class HTTPResponseEncoderTests: XCTestCase {
XCTAssertNoThrow(try channel.pipeline.add(handler: HTTPResponseEncoder()).wait())
var switchingResponse = HTTPResponseHead(version: HTTPVersion(major: 1, minor:1), status: status)
switchingResponse.headers = headers
XCTAssertNoThrow(try channel.writeOutbound(data: HTTPServerResponsePart.head(switchingResponse)))
XCTAssertNoThrow(try channel.writeOutbound(HTTPServerResponsePart.head(switchingResponse)))
if case .some(.byteBuffer(let buffer)) = channel.readOutbound() {
return buffer
} else {
@@ -102,7 +102,7 @@ class HTTPResponseEncoderTests: XCTestCase {
// This response contains neither Transfer-Encoding: chunked or Content-Length.
let response = HTTPResponseHead(version: HTTPVersion(major: 1, minor:0), status: .ok)
XCTAssertNoThrow(try channel.writeOutbound(data: HTTPServerResponsePart.head(response)))
XCTAssertNoThrow(try channel.writeOutbound(HTTPServerResponsePart.head(response)))
let writtenData: IOData = channel.readOutbound()!
switch writtenData{