Skip to content

Commit 77a2172

Browse files
committed
optimize timer initialization in MockPuppet
1 parent 311e0b7 commit 77a2172

File tree

1 file changed

+1
-5
lines changed
  • wechaty-puppet-mock/src/main/kotlin/io/github/wechaty

1 file changed

+1
-5
lines changed

wechaty-puppet-mock/src/main/kotlin/io/github/wechaty/MockPuppet.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ import kotlin.concurrent.scheduleAtFixedRate
1010

1111
class MockPuppet(puppetOptions: PuppetOptions) : Puppet(puppetOptions) {
1212

13-
private val timer: Timer
14-
15-
init {
16-
timer = Timer()
17-
}
13+
private val timer: Timer = Timer()
1814

1915
override fun start(): Future<Void> {
2016

0 commit comments

Comments
 (0)