Skip to content

Commit

Permalink
♻️ Fix interface of UploadService
Browse files Browse the repository at this point in the history
  • Loading branch information
olejnjak committed Sep 28, 2021
1 parent e4b87b3 commit 078c196
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/TorinoCore/Services/DependenciesUploader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ struct DependenciesUploadError: Error {
}

protocol DependenciesUploading {
func uploadDependencies(_ dependencies: [Dependency], prefix: String) throws
func uploadDependencies(_ dependencies: [Dependency]) throws
}

struct LocalDependenciesUploader: DependenciesUploading {
Expand All @@ -23,7 +23,7 @@ struct LocalDependenciesUploader: DependenciesUploading {
self.pathProvider = pathProvider
}

func uploadDependencies(_ dependencies: [Dependency], prefix: String) throws {
func uploadDependencies(_ dependencies: [Dependency]) throws {
try dependencies.forEach { dependency in
let dependencyDir = pathProvider.cacheDir(
dependency: dependency.name,
Expand Down
2 changes: 1 addition & 1 deletion Sources/TorinoCore/Services/UploadService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ final class UploadService {
func run(path: AbsolutePath) throws {
let dependencies = try dependenciesLoader.loadDependencies(at: path)

try dependenciesUploader.uploadDependencies(dependencies, prefix: "Swift-5.5")
try dependenciesUploader.uploadDependencies(dependencies)
}
}

0 comments on commit 078c196

Please sign in to comment.