Skip to content

Commit b723111

Browse files
committed
redundant return
1 parent 79cdeff commit b723111

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

FlyingSocks/Sources/Socket+Darwin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ extension Socket {
160160
}
161161

162162
static func unlink(_ addr: UnsafePointer<CChar>!) -> Int32 {
163-
return Darwin.unlink(addr)
163+
Darwin.unlink(addr)
164164
}
165165

166166
static func poll(_ fds: UnsafeMutablePointer<pollfd>!, _ nfds: UInt32, _ tmo_p: Int32) -> Int32 {

FlyingSocks/Sources/Socket+Glibc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ extension Socket {
156156
}
157157

158158
static func unlink(_ addr: UnsafePointer<CChar>!) -> Int32 {
159-
return Glibc.unlink(addr)
159+
Glibc.unlink(addr)
160160
}
161161

162162
static func poll(_ fds: UnsafeMutablePointer<pollfd>!, _ nfds: UInt32, _ tmo_p: Int32) -> Int32 {

0 commit comments

Comments
 (0)