Skip to content

Commit

Permalink
fix: ws相关方法参数类型修复
Browse files Browse the repository at this point in the history
  • Loading branch information
zoswing committed Dec 24, 2021
1 parent 5efc8e9 commit 2ed828d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/websocket/websocket.ts
Expand Up @@ -206,7 +206,7 @@ export class Ws {
}

// 校验shards
checkShards(shardsArr: Array<number>) {
checkShards(shardsArr: Array<number> | undefined) {
// 没有传shards进来
if (!shardsArr || shardsArr === undefined) {
return console.log('shards 不存在');
Expand Down

0 comments on commit 2ed828d

Please sign in to comment.