nodejs: parentheses around arrow function arguments

This commit is contained in:
rivexe
2023-03-29 13:31:33 +03:00
parent a05ea11dd7
commit 1789f7c9fd
2 changed files with 5 additions and 5 deletions

View File

@ -121,7 +121,7 @@ users.getAllUsers = function () {
// get a user by id specified
users.getUser = function (id) {
let result = null;
this.forEach(user => {
this.forEach((user) => {
if (user.id == id) {
result = user;
}
@ -132,7 +132,7 @@ users.getUser = function (id) {
// get a list of users with their name and email
users.getUsersForMentions = function (id) {
let result = [];
this.forEach(user => {
this.forEach((user) => {
if (user.id != id && user.name != null && user.email != null) {
result.push({
email: user.email,