We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 553dc3f + 03e5d9f commit 655c102Copy full SHA for 655c102
1 file changed
Sources/UseGraphPeriphery/GraphBuilder.swift
@@ -62,11 +62,8 @@ final class GraphBuilder {
62
guard let format = mapFormat(format: format) else { fatalError() }
63
let data = try await buildGraphData(edges: edges, format: format)
64
let url = URL(fileURLWithPath: FileManager.default.currentDirectoryPath).appending(path: "Graph.\(format.rawValue)")
65
- guard let fileContents = String(data: data, encoding: .utf8) else { fatalError() }
66
-
67
- Task {
68
- System.shared.run("open \(url.path())")
69
- }
+ FileManager.default.createFile(atPath: url.path(), contents: data)
+ System.shared.run("open \(url.path())")
70
case .csv:
71
csvBuildGraph(edges: edges)
72
}
0 commit comments