Skip to content

Commit 3124790

Browse files
author
David Ungar
committed
Fixed extra spaces and privatized initializer
1 parent d9b482c commit 3124790

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Tests/SwiftDriverTests/Helpers/OutputFileMapCreator.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ struct OutputFileMapCreator {
1919
private let inputPaths: [AbsolutePath]
2020
private let derivedData: AbsolutePath
2121

22+
private init(module: String, inputPaths: [AbsolutePath], derivedData: AbsolutePath) {
23+
self.module = module
24+
self.inputPaths = inputPaths
25+
self.derivedData = derivedData
26+
}
27+
2228
static func write(module: String,
2329
inputPaths: [AbsolutePath],
2430
derivedData: AbsolutePath,
@@ -40,7 +46,7 @@ struct OutputFileMapCreator {
4046
]
4147
.mapValues {"\(derivedData.appending(component: s.basenameWithoutExt))\($0)"}
4248
}
43-
return Dictionary( uniqueKeysWithValues:
49+
return Dictionary(uniqueKeysWithValues:
4450
inputPaths.map { ("\($0)", baseNameEntry($0)) }
4551
)
4652
.merging(["": master]) {_, _ in fatalError()}

Tests/SwiftDriverTests/IncrementalCompilationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ class CrossModuleIncrementalBuildTests: XCTestCase {
857857
let main = path.appending(component: "main.swift")
858858
try localFileSystem.writeFileContents(main) {
859859
$0 <<< "import MagicKit\n"
860-
$0 <<< "castASpell()"
860+
$0 <<< "castASpell()"
861861
}
862862

863863
let ofm = path.appending(component: "ofm2.json")

0 commit comments

Comments
 (0)