Skip to content

Commit e4d53a0

Browse files
committed
Use isNotEmpty() for size check
1 parent 418d3b5 commit e4d53a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/ai/elimu/content_provider/ui/letter_sound/LetterSoundsFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class LetterSoundsFragment : Fragment() {
6969
val letterSoundGsons = response.body() ?: return
7070
Log.i(TAG, "letterSoundGsons.size(): " + letterSoundGsons.size)
7171

72-
if (letterSoundGsons.size > 0) {
72+
if (letterSoundGsons.isNotEmpty()) {
7373
processResponseBody(letterSoundGsons)
7474
}
7575
} else {

0 commit comments

Comments
 (0)