Skip to content

Commit

Permalink
Update app/src/main/java/space/taran/arkmemo/data/repositories/TextNo…
Browse files Browse the repository at this point in the history
…tesRepo.kt

Co-authored-by: Hieu Vu <[email protected]>
  • Loading branch information
shubertm and hieuwu authored Oct 23, 2023
1 parent f7e0861 commit be5852b
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ class TextNotesRepo @Inject constructor() {
propertiesStorage = propertiesStorageRepo.provide(RootIndex.provide(root))
}

suspend fun save(note: TextNote?) {
if (note != null) {
add(note)
write(note)
}
suspend fun save(note: TextNote) {
add(note)
write(note)
}

suspend fun delete(note: TextNote) = withContext(iODispatcher) {
Expand Down

0 comments on commit be5852b

Please sign in to comment.