koishi-plugin-toram 0.1.0 → 0.1.1
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.
- package/lib/index.js +1 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -86,8 +86,8 @@ async function apply(ctx) {
|
|
|
86
86
|
arr2 = [];
|
|
87
87
|
for (i = 0; i <= n; i++) {
|
|
88
88
|
y = arr1.indexOf(Math.max(...arr1));
|
|
89
|
-
arr2.push(y);
|
|
90
89
|
arr1[y] = 0;
|
|
90
|
+
arr2.push(y);
|
|
91
91
|
}
|
|
92
92
|
;
|
|
93
93
|
for (i = 0; i <= n; i++) {
|
|
@@ -118,7 +118,6 @@ async function apply(ctx) {
|
|
|
118
118
|
if (i != n) {
|
|
119
119
|
text += '\n';
|
|
120
120
|
}
|
|
121
|
-
;
|
|
122
121
|
}
|
|
123
122
|
;
|
|
124
123
|
return text;
|
|
@@ -158,4 +157,3 @@ async function apply(ctx) {
|
|
|
158
157
|
});
|
|
159
158
|
}
|
|
160
159
|
exports.apply = apply;
|
|
161
|
-
;
|