Skip to content

Commit d76d276

Browse files
committed
Revert "Adjustments for SE-0118"
This reverts commit 97a5e22. Parent commit in swift was reverted in PR #3583
1 parent 97a5e22 commit d76d276

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/Basic/Path.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public struct AbsolutePath {
153153
/// to be a valid path component (i.e., it cannot be empty, contain a path
154154
/// separator, or be a pseudo-path like '.' or '..').
155155
public func appending(components names: String...) -> AbsolutePath {
156-
return names.reduce(self, { path, name in
156+
return names.reduce(self, combine: { path, name in
157157
path.appending(component: name)
158158
})
159159
}

Tests/Basic/FileSystemTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ class FileSystemTests: XCTestCase {
4545
_ = try fs.getDirectoryContents("/does-not-exist")
4646
}
4747
let thisDirectoryContents = try! fs.getDirectoryContents(AbsolutePath(#file).parentDirectory)
48-
XCTAssertTrue(!thisDirectoryContents.contains(where: { $0 == "." }))
49-
XCTAssertTrue(!thisDirectoryContents.contains(where: { $0 == ".." }))
50-
XCTAssertTrue(thisDirectoryContents.contains(where: { $0 == #file.basename }))
48+
XCTAssertTrue(!thisDirectoryContents.contains({ $0 == "." }))
49+
XCTAssertTrue(!thisDirectoryContents.contains({ $0 == ".." }))
50+
XCTAssertTrue(thisDirectoryContents.contains({ $0 == #file.basename }))
5151
}
5252

5353
func testLocalCreateDirectory() throws {

0 commit comments

Comments
 (0)