@@ -17,8 +17,6 @@ import Foundation
1717 import FlutterMacOS
1818#endif
1919
20- extension FlutterError : Error { }
21-
2220public final class FLTFirebaseStoragePlugin : NSObject , FlutterPlugin , FirebaseStorageHostApi {
2321 private var channel : FlutterMethodChannel ?
2422 private var messenger : FlutterBinaryMessenger ?
@@ -35,12 +33,12 @@ public final class FLTFirebaseStoragePlugin: NSObject, FlutterPlugin, FirebaseSt
3533 @objc
3634 public static func register( with registrar: FlutterPluginRegistrar ) {
3735 let channelName = " plugins.flutter.io/firebase_storage "
38- let channel = FlutterMethodChannel ( name: channelName, binaryMessenger: registrar. messenger ( ) )
36+ let channel = FlutterMethodChannel ( name: channelName, binaryMessenger: registrar. messenger)
3937 let instance = FLTFirebaseStoragePlugin ( )
4038 instance. channel = channel
41- instance. messenger = registrar. messenger ( )
39+ instance. messenger = registrar. messenger
4240 registrar. addMethodCallDelegate ( instance, channel: channel)
43- FirebaseStorageHostApiSetup . setUp ( binaryMessenger: registrar. messenger ( ) , api: instance)
41+ FirebaseStorageHostApiSetup . setUp ( binaryMessenger: registrar. messenger, api: instance)
4442 }
4543
4644 public func handle( _ call: FlutterMethodCall , result: @escaping FlutterResult ) {
@@ -92,7 +90,6 @@ public final class FLTFirebaseStoragePlugin: NSObject, FlutterPlugin, FirebaseSt
9290
9391 func useStorageEmulator( app: PigeonStorageFirebaseApp , host: String , port: Int64 ,
9492 completion: @escaping ( Result < Void , Error > ) -> Void ) {
95- let key = app. bucket
9693 let s = storage ( app: app)
9794 s. useEmulator ( withHost: host, port: Int ( port) )
9895 completion ( . success( ( ) ) )
0 commit comments