diff --git a/src/Bus.Receiver.swift b/src/Bus.Receiver.swift index dab632d..f1751be 100644 --- a/src/Bus.Receiver.swift +++ b/src/Bus.Receiver.swift @@ -7,8 +7,8 @@ public extension Bus { public init( _ keys: Set, _ handler: @escaping ((String, T) -> Void), - opt: [Option] = [], - { + opt: [Option] = [] + ) { Bus.receive(keys, handler, opt: opt, sub: &subscriptions) } } diff --git a/src/VM.swift b/src/VM.swift index b8c34f2..0e80f4d 100644 --- a/src/VM.swift +++ b/src/VM.swift @@ -3,7 +3,7 @@ import SwiftUI final class VM: ObservableObject { @Published var text = "a:" - + var subscriptions = [AnyCancellable]() init() {