Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: starry-shivam <[email protected]>
  • Loading branch information
starry-shivam committed Oct 19, 2023
1 parent 4e06695 commit 4f44cb6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ class BackupManager(private val context: Context, private val goalDao: GoalDao)
val backupData: BackupJsonModel? = try {
gsonInstance.fromJson(jsonString, BackupJsonModel::class.java)
} catch (exc: Exception) {
log("Failed tp parse backup json file! Err: ${exc.message}")
log("Failed to parse backup json file! Err: ${exc.message}")
exc.printStackTrace()
null
}

if (backupData == null) {
if (backupData?.data == null) {
withContext(Dispatchers.Main) { onFailure() }
return@withContext
}
Expand Down

0 comments on commit 4f44cb6

Please sign in to comment.