Skip to content

Commit

Permalink
Remove useless logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelvcaetano committed Aug 13, 2023
1 parent 8a8b725 commit d440aa9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ class InternalLayoutsRepository(private val context: Context, private val gson:
it.toModel()
}
emitter.onSuccess(layouts ?: emptyList())
} catch (it: Exception) {
it.printStackTrace()
} catch (_: Exception) {
emitter.onSuccess(emptyList())
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ class LayoutMigrationHelper(
val layoutListType = TypeToken.getParameterized(List::class.java, fromClass).type
return runCatching {
gson.fromJson<List<T>>(FileReader(cacheFile), layoutListType)
}.onFailure {
it.printStackTrace()
}.getOrElse { emptyList() }
}

Expand Down

0 comments on commit d440aa9

Please sign in to comment.