Skip to content

Commit

Permalink
Fixed linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-ludwig committed Feb 12, 2024
1 parent d8babdb commit 95e3489
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Sources/CodeEditCLI/Open.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ extension CodeEditCLI {
// Create directories if they don't exist
let directoryURL = openURL.deletingLastPathComponent()
do {
try fileManager.createDirectory(at: directoryURL, withIntermediateDirectories: true, attributes: nil)
try fileManager.createDirectory(
at: directoryURL,
withIntermediateDirectories: true,
attributes: nil
)
} catch {
print("Failed to create directory at \(directoryURL.path): \(error)")
return
Expand Down
2 changes: 0 additions & 2 deletions Sources/CodeEditCLI/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ struct CodeEditCLI: ParsableCommand {
defaultSubcommand: Open.self
)

init() {}

enum CLIError: Error {
case invalidWorkingDirectory
case invalidFileURL
Expand Down

0 comments on commit 95e3489

Please sign in to comment.