Skip to content

Commit d7a6c10

Browse files
committed
fix: remove unnecessary check for adminUid before fetching UIN in group decrease event
1 parent 0ed92ae commit d7a6c10

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/onebot11/adapter.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,6 @@ class OneBot11Adapter extends Service {
369369
if (adminUidMatch) {
370370
adminUid = adminUidMatch[1]
371371
}
372-
}
373-
if (adminUid){
374372
adminUin = await this.ctx.ntUserApi.getUinByUid(adminUid)
375373
}
376374
const event = new OB11GroupDecreaseEvent(tip.groupCode, +memberUin, +adminUin, 'kick')

0 commit comments

Comments
 (0)