We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5420e9 commit 0774ce3Copy full SHA for 0774ce3
1 file changed
Sources/XcodeProj/Project/XcodeProj.swift
@@ -130,12 +130,7 @@ extension XcodeProj: Writable {
130
/// - Parameter override: if workspace should be overridden. Default is true.
131
/// If false will throw error if workspace already exists at the given path.
132
public func writeWorkspace(path: Path, override: Bool = true) throws {
133
-
134
- // prevent overwriting identical workspace data
135
- if let prevData = try? XCWorkspaceData(path: path), prevData == workspace.data {
136
- return
137
- }
138
+ guard workspace.data != (try? XCWorkspaceData(path: path)) else { return }
139
try workspace.write(path: XcodeProj.workspacePath(path), override: override)
140
}
141
0 commit comments