Skip to content

Commit 4b798d7

Browse files
committed
[BOOK-275] chore: code style check success
1 parent 793189b commit 4b798d7

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

core/ocr/src/main/kotlin/com/ninecraft/booket/core/ocr/model/CloudVisionRequest.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package com.ninecraft.booket.core.ocr.model
22

33
import kotlinx.serialization.Serializable
44

5-
65
@Serializable
76
data class CloudVisionRequest(
87
val requests: List<AnnotateImageRequest>,
@@ -12,7 +11,7 @@ data class CloudVisionRequest(
1211
data class AnnotateImageRequest(
1312
val image: VisionImage,
1413
val features: List<Feature>,
15-
val imageContext: ImageContext? = null
14+
val imageContext: ImageContext? = null,
1615
)
1716

1817
@Serializable
@@ -27,5 +26,5 @@ data class Feature(
2726

2827
@Serializable
2928
data class ImageContext(
30-
val languageHints: List<String>? = null
29+
val languageHints: List<String>? = null,
3130
)

core/ocr/src/main/kotlin/com/ninecraft/booket/core/ocr/service/CloudVisionService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ interface CloudVisionService {
1010
@POST("v1/images:annotate")
1111
suspend fun batchAnnotateImage(
1212
@Query("key") key: String,
13-
@Body body: CloudVisionRequest
13+
@Body body: CloudVisionRequest,
1414
): CloudVisionResponse
1515
}

feature/record/src/main/kotlin/com/ninecraft/booket/feature/record/ocr/OcrUi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ private fun CameraPreview(
267267
override fun onError(exception: ImageCaptureException) {
268268
Logger.e("ImageCaptureException: ${exception.message}")
269269
}
270-
}
270+
},
271271
)
272272
},
273273
modifier = Modifier.size(72.dp),

0 commit comments

Comments
 (0)