File tree 1 file changed +2
-5
lines changed
Sources/CartingCore/Services
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ public final class ProjectService {
19
19
static let carthageScript = " /usr/local/bin/carthage copy-frameworks "
20
20
}
21
21
22
- public let projectDirectoryPath : String
22
+ public let projectDirectoryPath : String ?
23
23
24
24
private var projectFolder : Folder {
25
- if let folder = try ? Folder ( path: projectDirectoryPath ) {
25
+ if let path = projectDirectoryPath , let folder = try ? Folder ( path: path ) {
26
26
return folder
27
27
}
28
28
return FileSystem ( ) . currentFolder
@@ -31,9 +31,6 @@ public final class ProjectService {
31
31
// MARK: - Lifecycle
32
32
33
33
public init ( projectDirectoryPath: String ? ) throws {
34
- guard let projectDirectoryPath = projectDirectoryPath else {
35
- throw Error . projectFileReadingFailed
36
- }
37
34
self . projectDirectoryPath = projectDirectoryPath
38
35
}
39
36
You can’t perform that action at this time.
0 commit comments