浏览代码

refactor: removed unused null check

flutter-beta
Julian Steenbakker 5 年前
父节点
当前提交
c0ce8e30dc
找不到此签名对应的密钥 GPG 密钥 ID: 16E437C7A3D94250
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      lib/src/qr_code_scanner.dart

+ 1
- 1
lib/src/qr_code_scanner.dart 查看文件

@@ -233,7 +233,7 @@ class QRViewController {
/// Gets information about which camera is active.
Future<CameraFacing> getCameraInfo() async {
try {
var cameraFacing = await _channel.invokeMethod('getCameraInfo') as int?;
var cameraFacing = await _channel.invokeMethod('getCameraInfo') as int;
if (cameraFacing == -1) return _cameraFacing;
return CameraFacing
.values[await _channel.invokeMethod('getCameraInfo') as int];


正在加载...
取消
保存