Skip to content

Commit

Permalink
Corrected indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
this-Aditya committed Aug 1, 2024
1 parent 75c1602 commit a9ae640
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,21 +279,21 @@ class PhoneAudioInputManager(service: PhoneAudioInputService) : AbstractSourceMa

private fun clearAudioDirectory() {
payloadSize = 0
audioDir?.let { audioDir ->
audioDir.parentFile
?.list { _, name -> name.startsWith("phone_audio_input") && name.endsWith(".wav") }
?.forEach {
File(audioDir.parentFile, it).delete()
logger.debug("Deleted audio file: {}", it)
}
audioDir?.let { audioDir ->
audioDir.parentFile
?.list { _, name -> name.startsWith("phone_audio_input") && name.endsWith(".wav") }
?.forEach {
File(audioDir.parentFile, it).delete()
logger.debug("Deleted audio file: {}", it)
}

audioDir.walk()
.filter { it.name.startsWith("phone_audio_input") && it.path.endsWith(".wav") }
.forEach {
it.delete()
logger.debug("Deleted file: {}", it)
}
}
audioDir.walk()
.filter { it.name.startsWith("phone_audio_input") && it.path.endsWith(".wav") }
.forEach {
it.delete()
logger.debug("Deleted file: {}", it)
}
}
}

private fun startAudioRecording() {
Expand Down

0 comments on commit a9ae640

Please sign in to comment.