Skip to content

Commit 89680b4

Browse files
committed
Make methods static
1 parent 342fa9e commit 89680b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/ReleaseNotesCore/ReleaseNotes.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct ReleaseNotes: AsyncParsableCommand {
3232
return
3333
}
3434

35-
guard let output = try runPackageUpdate() else {
35+
guard let output = try Self.runPackageUpdate(in: workingDirecory) else {
3636
print("Package update did not return any changes.")
3737
return
3838
}
@@ -60,8 +60,8 @@ struct ReleaseNotes: AsyncParsableCommand {
6060
}
6161
}
6262

63-
func runPackageUpdate() throws -> String? {
64-
let process = updateProcess()
63+
static func runPackageUpdate(in workingDirecory: String) throws -> String? {
64+
let process = updateProcess(workingDirecory: workingDirecory)
6565
let pipe = Pipe()
6666
process.standardOutput = pipe
6767

@@ -82,7 +82,7 @@ struct ReleaseNotes: AsyncParsableCommand {
8282
return stdout
8383
}
8484

85-
func updateProcess() -> Process {
85+
static func updateProcess(workingDirecory: String) -> Process {
8686
let process = Process()
8787
process.executableURL = URL(fileURLWithPath: "/bin/bash")
8888
process.arguments = [

0 commit comments

Comments
 (0)