koishi-plugin-ets2-tools-tmp 1.2.2 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -86,8 +86,6 @@ module.exports = async (ctx, cfg, serverName) => {
86
86
  case 's1':
87
87
  case 's2':
88
88
  case 'a': {
89
- // 使用块级作用域包裹,避免变量重复声明
90
- // 构建路况数据
91
89
  let data = {
92
90
  mapType: serverInfo.mapType,
93
91
  trafficList: [],
@@ -125,8 +123,6 @@ module.exports = async (ctx, cfg, serverName) => {
125
123
  break;
126
124
  }
127
125
  case 'p': {
128
- // 使用块级作用域包裹,避免变量重复声明
129
- // 构建路况数据
130
126
  let data = {
131
127
  mapType: serverInfo.mapType,
132
128
  trafficList: [],
@@ -34,7 +34,6 @@ const typeToZh = {
34
34
  * 查询路况
35
35
  */
36
36
  module.exports = async (ctx, cfg, serverName) => {
37
- // 转换服务器别名
38
37
  let serverQueryName = serverNameAlias[serverName];
39
38
  if (!serverQueryName) {
40
39
  return '请输入正确的服务器名称 (s1, s2, p, a)';
@@ -46,7 +45,6 @@ module.exports = async (ctx, cfg, serverName) => {
46
45
  // 构建消息
47
46
  let message = '';
48
47
  for (const traffic of trafficData.data) {
49
- // 如果已有内容,换行
50
48
  if (message) {
51
49
  message += '\n\n';
52
50
  }