Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stackotter committed May 20, 2024
1 parent d5b56cf commit 893f7a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions Sources/FileSystemWatcher/CoreServicesFileSystemWatcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -260,17 +260,18 @@
)
}

for i in 0..<numEvents {
let eventPath = eventPaths2[i]
let eventFlag = eventFlags[i]
for index in 0..<numEvents {
let eventPath = eventPaths2[index]
let eventFlag = eventFlags[index]
let eventFlag1 = CoreServicesFileSystemWatcher.EventFlags(
rawValue: eventFlag)
let eventId = eventIds[i]
let eventId = eventIds[index]
let eventId1 = CoreServicesFileSystemWatcher.EventID(rawValue: eventId)
let event = CoreServicesFileSystemWatcher.Event(
path: eventPath,
flags: eventFlag1,
id: eventId1)
id: eventId1
)
self1.handler(event)
}
} catch {
Expand Down Expand Up @@ -326,8 +327,8 @@
FSEventStreamUnscheduleFromRunLoop(rawref, runLoop.getCFRunLoop(), runLoopMode1)
}

func setDispatchQueue(_ q: DispatchQueue?) {
FSEventStreamSetDispatchQueue(rawref, q)
func setDispatchQueue(_ queue: DispatchQueue?) {
FSEventStreamSetDispatchQueue(rawref, queue)
}

func invalidate() {
Expand Down
2 changes: 1 addition & 1 deletion Sources/swift-bundler/Commands/RunCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ struct RunCommand: AsyncCommand {
device: device,
arguments: passThroughArguments,
environmentVariables: environmentVariables.merging(
hotReloadingVariables, uniquingKeysWith: { x, _ in x }
hotReloadingVariables, uniquingKeysWith: { key, _ in key }
)
).unwrap()
} else {
Expand Down

0 comments on commit 893f7a1

Please sign in to comment.