Skip to content

Commit

Permalink
fix: Remove unnecessary runCatching
Browse files Browse the repository at this point in the history
  • Loading branch information
Myzel394 committed Dec 17, 2023
1 parent 12311d3 commit 3cc34fa
Showing 1 changed file with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,11 @@ fun RecorderEventsHandler(
} else {
audioRecorder.stopRecording(context)

runCatching {
saveAsLastRecording(audioRecorder as RecorderModel)
saveAsLastRecording(audioRecorder as RecorderModel)

saveRecording(audioRecorder)
saveRecording(audioRecorder)

audioRecorder.destroyService(context)
}
audioRecorder.destroyService(context)
}
}
}
Expand All @@ -236,13 +234,11 @@ fun RecorderEventsHandler(
} else {
videoRecorder.stopRecording(context)

runCatching {
saveAsLastRecording(videoRecorder as RecorderModel)
saveAsLastRecording(videoRecorder as RecorderModel)

saveRecording(videoRecorder)
saveRecording(videoRecorder)

videoRecorder.destroyService(context)
}
videoRecorder.destroyService(context)
}
}
}
Expand Down

0 comments on commit 3cc34fa

Please sign in to comment.