1 |
//
|
|
2 |
// RouteComposer
|
|
3 |
// NilContextTransformer.swift
|
|
4 |
// https://github.com/ekazaev/route-composer
|
|
5 |
//
|
|
6 |
// Created by Eugene Kazaev in 2018-2022.
|
|
7 |
// Distributed under the MIT license.
|
|
8 |
//
|
|
9 |
// Become a sponsor:
|
|
10 |
// https://github.com/sponsors/ekazaev
|
|
11 |
//
|
|
12 |
|
|
13 |
import Foundation
|
|
14 |
|
|
15 |
struct NilContextTransformer<Context>: ContextTransformer {
|
|
16 |
func transform(_ context: Context) throws -> Context {
|
38x |
17 |
return context
|
38x |
18 |
}
|
38x |
19 |
}
|
|