Skip to content

Commit 75115d4

Browse files
authored
replace use of NSUUID with UUID (#3770)
motivation: user modern version of foundation utilities changes: replace use of NSUUID with UUID
1 parent 1456b14 commit 75115d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/SPMTestSupport/InMemoryGitRepository.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
*/
1010

1111
import Basics
12+
import Dispatch
13+
import Foundation
14+
import SourceControl
1215
import TSCBasic
1316
import TSCUtility
14-
import SourceControl
15-
import Dispatch
16-
import class Foundation.NSUUID
1717

1818
/// The error encountered during in memory git repository operations.
1919
public enum InMemoryGitRepositoryError: Swift.Error {
@@ -108,8 +108,8 @@ public final class InMemoryGitRepository {
108108
/// Commits the current state of the repository filesystem and returns the commit identifier.
109109
@discardableResult
110110
public func commit() throws -> String {
111-
// Create a fake hash for thie commit.
112-
let hash = String((NSUUID().uuidString + NSUUID().uuidString).prefix(40))
111+
// Create a fake hash for this commit.
112+
let hash = String((UUID().uuidString + UUID().uuidString).prefix(40))
113113
self.lock.withLock {
114114
self.head.hash = hash
115115
// Store the commit in history.

0 commit comments

Comments
 (0)