fix(utils): wrong auto fix for getAcwScV2ByArg1

This commit is contained in:
Tony
2024-09-04 12:05:03 +08:00
parent 93d45aa708
commit fa847e7166
+5 -3
View File
@@ -13,10 +13,12 @@ const getAcwScV2ByArg1 = (arg1) => {
}
return res;
};
const unsbox = function (str) {
const unsbox = function (str: string) {
const code = [15, 35, 29, 24, 33, 16, 1, 38, 10, 9, 19, 31, 40, 27, 22, 23, 25, 13, 6, 11, 39, 18, 20, 8, 14, 21, 32, 26, 2, 30, 7, 4, 17, 5, 3, 28, 34, 37, 12, 36];
const res = [];
for (const [i, cur] of str.entries()) {
const res: string[] = [];
// eslint-disable-next-line unicorn/no-for-loop
for (let i = 0; i < str.length; i++) {
const cur = str[i];
for (const [j, element] of code.entries()) {
if (element === i + 1) {
res[j] = cur;