Skip to content

Commit

Permalink
fix: ensure log file exists before share log
Browse files Browse the repository at this point in the history
Signed-off-by: qwq233 <qwq233@qwq2333.top>
  • Loading branch information
qwq233 committed Oct 20, 2024
1 parent a7a2f24 commit eb9a3d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ object Log {
}
@JvmStatic
fun shareLog(context: Context) {
ShareUtil.shareFile(context, logFile)
if (logFile.exists()) ShareUtil.shareFile(context, logFile)
}

@JvmStatic
Expand Down

0 comments on commit eb9a3d6

Please # to comment.