mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
style: more fixes
This commit is contained in:
@@ -71,10 +71,8 @@ module.exports = function (User) {
|
|||||||
let line = '';
|
let line = '';
|
||||||
usersData.forEach((user, index) => {
|
usersData.forEach((user, index) => {
|
||||||
line += `${fields
|
line += `${fields
|
||||||
.map((field) =>
|
.map(field => (isFinite(user[field]) ? `'${user[field]}'` : user[field]))
|
||||||
isFinite(user[field]) ? `'${user[field]}'` : user[field]
|
.join(',')}`;
|
||||||
)
|
|
||||||
.join(",")}`;
|
|
||||||
if (showIps) {
|
if (showIps) {
|
||||||
userIPs = ips[index] ? ips[index].join(',') : '';
|
userIPs = ips[index] ? ips[index].join(',') : '';
|
||||||
line += `,"${userIPs}"\n`;
|
line += `,"${userIPs}"\n`;
|
||||||
|
|||||||
Reference in New Issue
Block a user