Skip to content

Commit

Permalink
style: more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Mar 17, 2023
1 parent 9ed6961 commit 93aa43f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/user/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down

0 comments on commit 93aa43f

Please sign in to comment.