mirror of
https://github.com/apple/container.git
synced 2026-11-15 10:20:00 +00:00
Remove an unnecessary function (#351)
Remove an unnecessary function to simplify the code.
This commit is contained in:
1 parent
a405d88e6d
commit
9f5aaf247a
1 file changed
+1
-5
@@ -70,10 +70,6 @@ final class ManagedProcess: Sendable {
|
||||
}
|
||||
// swiftlint: enable type_name
|
||||
|
||||
static func localizeLogger(log: inout Logger, id: String) {
|
||||
log[metadataKey: "id"] = "\(id)"
|
||||
}
|
||||
|
||||
private static let ackPid = "AckPid"
|
||||
private static let ackConsole = "AckConsole"
|
||||
|
||||
@@ -87,7 +83,7 @@ final class ManagedProcess: Sendable {
|
||||
) throws {
|
||||
self.id = id
|
||||
var log = log
|
||||
Self.localizeLogger(log: &log, id: id)
|
||||
log[metadataKey: "id"] = "\(id)"
|
||||
self.log = log
|
||||
self.owningPid = owningPid
|
||||
|
||||
|
||||
Reference in new issue
Block a user