Skip to content

Commit

Permalink
refactor: remove unnecessary null check on job
Browse files Browse the repository at this point in the history
  • Loading branch information
wzieba committed Oct 31, 2023
1 parent 9b9e527 commit 4f3f4c1
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ internal class FlushManager(
}

fun stop() {
if (job != null) {
job!!.cancel()
job = null
}
job?.cancel()
}

val isRunning: Boolean
Expand Down

0 comments on commit 4f3f4c1

Please sign in to comment.