Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion EventSource/EventSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ open class EventSource: NSObject, EventSourceProtocol, URLSessionDataDelegate {
}

public func events() -> [String] {
return Array(eventListeners.keys)
Array(eventListeners.keys)
}

open func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
Expand Down
2 changes: 1 addition & 1 deletion EventSource/EventStreamParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class EventStreamParser {
}

var currentBuffer: String? {
return NSString(data: dataBuffer as Data, encoding: String.Encoding.utf8.rawValue) as String?
NSString(data: dataBuffer as Data, encoding: String.Encoding.utf8.rawValue) as String?
}

func append(data: Data?) -> [Event] {
Expand Down
2 changes: 1 addition & 1 deletion EventSourceTests/Mock/URLSessionDataTaskMock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class URLSessionDataTaskMock: URLSessionDataTask {
}

override var response: URLResponse? {
return mockResponse
mockResponse
}

}