Refine code style

This commit is contained in:
Mygod
2021-10-25 11:15:07 -04:00
parent dd0d58af67
commit 9c30b82100

View File

@@ -57,7 +57,7 @@ object UpdateChecker {
putLong(KEY_PUBLISHED, published) putLong(KEY_PUBLISHED, published)
} }
emit(if (myVersion == version) null else GitHubUpdate(version, published)) emit(if (myVersion == version) null else GitHubUpdate(version, published))
} catch (e: CancellationException) { } catch (_: CancellationException) {
return@flow return@flow
} catch (e: Exception) { } catch (e: Exception) {
Timber.w(e) Timber.w(e)