style: more fixes

isekai-main
Julian Lam 2 years ago
parent 9ed6961af8
commit 93aa43f717

@ -71,10 +71,8 @@ module.exports = function (User) {
let line = '';
usersData.forEach((user, index) => {
line += `${fields
.map((field) =>
isFinite(user[field]) ? `'${user[field]}'` : user[field]
)
.join(",")}`;
.map(field => (isFinite(user[field]) ? `'${user[field]}'` : user[field]))
.join(',')}`;
if (showIps) {
userIPs = ips[index] ? ips[index].join(',') : '';
line += `,"${userIPs}"\n`;

Loading…
Cancel
Save