Skip to content

Logger.MetadataProvider.multiplex returns optional #443

@LePips

Description

@LePips

Unless there is some reasoning I can't find on the repo or forums, this is a basic type discrepancy from SLG-0001 and an instance is always provided anyways.

PR: #442

It is annoying to fallback to force unwrap (which looks spooky) or making an empty provider for coalescing:

.multiplex(myProviders) ?? .init({[:]})

Aside: I would also request some cleanup around MetadataProvider.init to take an autoclosure'd Metadata, rather than enforcing the closure style.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions