Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rawatnaresh committed Jan 26, 2025
1 parent cf8c148 commit 2be02ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions android/src/main/java/com/rncamerakit/CKCamera.kt
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,12 @@ class CKCamera(context: ThemedReactContext) : FrameLayout(context), LifecycleObs

if (scanBarcode) {
val analyzer = QRCodeAnalyzer { barcodes, imageSize ->
if(barcodes.isEmpty()) {
if (barcodes.isEmpty()) {
return@QRCodeAnalyzer
}

val barcodeFrame = barcodeFrame;
if(barcodeFrame == null) {
if (barcodeFrame == null) {
onBarcodeRead(barcodes)
return@QRCodeAnalyzer
}
Expand All @@ -334,7 +334,7 @@ class CKCamera(context: ThemedReactContext) : FrameLayout(context), LifecycleObs
barcodeFrame.frameRect.contains(scaledBarcodeBoundingBox)
}

if(filteredBarcodes.isNotEmpty()) {
if (filteredBarcodes.isNotEmpty()) {
onBarcodeRead(filteredBarcodes)
}
}
Expand Down

0 comments on commit 2be02ce

Please sign in to comment.