func unwrap()

in Sources/PackageRegistryExample/Helpers.swift [14:21]


    func unwrap(orError error: Error) throws -> Wrapped {
        switch self {
        case .some(let value):
            return value
        case .none:
            throw error
        }
    }