Skip to content

Commit

Permalink
Update Swift code to comply with SwiftLint 0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Eitot committed Aug 6, 2017
1 parent e7f6f6f commit b3348c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DirectoryMonitor.swift
Expand Up @@ -171,7 +171,7 @@ enum DirectoryMonitorError: LocalizedError {
private extension FSEventStreamRef {

init(allocator: CFAllocator? = kCFAllocatorDefault, callback: @escaping FSEventStreamCallback, context: UnsafeMutablePointer<FSEventStreamContext>? = nil, directories: [URL], startAt: FSEventStreamEventId = .now, latency: TimeInterval = 0, configuration: FileSystemEventStreamConfiguration = .none) throws {
let directories = directories.map({ $0.path as CFString }) as CFArray
let directories = directories.map { $0.path as CFString } as CFArray

if let stream = FSEventStreamCreate(allocator, callback, context, directories, startAt, latency, configuration.rawValue) {
self = stream
Expand Down

0 comments on commit b3348c0

Please sign in to comment.