diff --git a/app/src/main/java/space/taran/arkmemo/data/repositories/TextNotesRepo.kt b/app/src/main/java/space/taran/arkmemo/data/repositories/TextNotesRepo.kt index 943a3fc3..4d91c22e 100644 --- a/app/src/main/java/space/taran/arkmemo/data/repositories/TextNotesRepo.kt +++ b/app/src/main/java/space/taran/arkmemo/data/repositories/TextNotesRepo.kt @@ -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) {