Skip to content

Commit 43e28bc

Browse files
committed
Fix a compilation error on old compilers
1 parent acc2e56 commit 43e28bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OSLogLogger.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private extension OSLogLogger {
161161
Merge the logger’s metadata, the provider’s metadata and the given explicit metadata and return the new metadata.
162162
If the provider’s metadata and the explicit metadata are `nil`, returns `nil` to signify the current `flatMetadataCache` can be used. */
163163
func mergedMetadata(with explicit: Logging.Logger.Metadata?) -> Logging.Logger.Metadata? {
164-
var metadata = metadata
164+
var metadata = self.metadata
165165
let provided = metadataProvider?.get() ?? [:]
166166

167167
guard !provided.isEmpty || !((explicit ?? [:]).isEmpty) else {

0 commit comments

Comments
 (0)