Skip to content

Commit 1d69d91

Browse files
committed
fix typo
1 parent cbc8006 commit 1d69d91

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<module>wechaty</module>
3131
<module>wechaty-puppet</module>
3232
<module>wechaty-puppet-hostie</module>
33+
<module>examples</module>
3334
<module>wechaty-puppet-mock</module>
3435
</modules>
3536

wechaty/src/main/kotlin/io/github/wechaty/user/RoomInvitation.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class RoomInvitation(wechaty: Wechaty,val id:String) : Accessory(wechaty){
6464

6565
fun topic():String {
6666
val payload = wechaty.getPuppet().roomInvitationPayload(this.id).get()
67-
return payload.topic ?:"";
67+
return payload.topic ?:""
6868
}
6969

7070
companion object{

wechaty/src/main/kotlin/io/github/wechaty/user/manager/RoomManager.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ import io.github.wechaty.user.Contact
99
import io.github.wechaty.user.Room
1010
import org.apache.commons.collections4.CollectionUtils
1111
import org.slf4j.LoggerFactory
12-
import java.util.*
1312

1413
class RoomManager(wechaty: Wechaty) : Accessory(wechaty) {
1514

16-
private val roomaCache: Cache<String, Room> = Caffeine.newBuilder().build()
15+
private val roomCache: Cache<String, Room> = Caffeine.newBuilder().build()
1716

1817
fun create(contactList: List<Contact>, topic: String?): Room {
1918
if (contactList.size < 2) {
@@ -83,7 +82,7 @@ class RoomManager(wechaty: Wechaty) : Accessory(wechaty) {
8382
}
8483

8584
fun load(id: String): Room {
86-
return roomaCache.get(id) {
85+
return roomCache.get(id) {
8786
Room(wechaty, id)
8887
}!!
8988
}

0 commit comments

Comments
 (0)