Showing
1 changed file
with
0 additions
and
4 deletions
| @@ -136,10 +136,6 @@ public class MobileScannerPlugin: NSObject, FlutterPlugin { | @@ -136,10 +136,6 @@ public class MobileScannerPlugin: NSObject, FlutterPlugin { | ||
| 136 | result(FlutterError(code: "MobileScanner", | 136 | result(FlutterError(code: "MobileScanner", |
| 137 | message: "No camera found or failed to open camera!", | 137 | message: "No camera found or failed to open camera!", |
| 138 | details: nil)) | 138 | details: nil)) |
| 139 | - } catch MobileScannerError.torchError(let error) { | ||
| 140 | - result(FlutterError(code: "MobileScanner", | ||
| 141 | - message: "Error occured when setting torch!", | ||
| 142 | - details: error)) | ||
| 143 | } catch MobileScannerError.cameraError(let error) { | 139 | } catch MobileScannerError.cameraError(let error) { |
| 144 | result(FlutterError(code: "MobileScanner", | 140 | result(FlutterError(code: "MobileScanner", |
| 145 | message: "Error occured when setting up camera!", | 141 | message: "Error occured when setting up camera!", |
-
Please register or login to post a comment