Skip to content

Commit 1e375f4

Browse files
Martin Conte Mac DonellReflejo
Martin Conte Mac Donell
authored andcommitted
Fix lint violations
1 parent f5aad35 commit 1e375f4

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

Example/main.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ final class ASCIIClock {
4040
refresh()
4141

4242
// Handle window resizing
43-
let handleWinch: @convention(c) Int32 -> Void = { signal in
43+
let handleWinch: @convention(c) Int32 -> Void = { _ in
4444
endwin()
4545
refresh()
4646
clear()

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ install-tvOS:
1010
true
1111

1212
install-lint:
13-
brew remove swiftlint --force || true
14-
brew install --force-bottle https://raw.githubusercontent.com/Homebrew/homebrew-core/a97c85994a3f714355a20511b4df3a546ae809cf/Formula/swiftlint.rb
13+
brew install swiftlint || true
1514

1615
# Run Tasks
1716

Sources/DNSResolver.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class DNSResolver {
1919
static func resolve(host: String, timeout: TimeInterval = kDefaultTimeout,
2020
completion: @escaping ([InternetAddress]) -> Void)
2121
{
22-
let callback: CFHostClientCallBack = { host, hostinfo, error, info in
22+
let callback: CFHostClientCallBack = { host, _, _, info in
2323
guard let info = info else {
2424
return
2525
}

Sources/NTPClient.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ final class NTPClient {
149149
{
150150
signal(SIGPIPE, SIG_IGN)
151151

152-
let callback: CFSocketCallBack = { socket, callbackType, address, data, info in
152+
let callback: CFSocketCallBack = { socket, callbackType, _, data, info in
153153
if callbackType == .writeCallBack {
154154
var packet = NTPPacket()
155155
let PDU = packet.prepareToSend() as CFData

Tests/KronosTests/DNSResolverTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ final class DNSResolverTests: XCTestCase {
55

66
func testResolveOneIP() {
77
let expectation = self.expectation(description: "Query host's DNS for a single IP")
8-
DNSResolver.resolve(host: "lyft.com") { addresses in
8+
DNSResolver.resolve(host: "test.com") { addresses in
99
XCTAssertEqual(addresses.count, 1)
1010
expectation.fulfill()
1111
}

0 commit comments

Comments
 (0)