Skip to content

Commit

Permalink
Reduced-Function_Parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
seif khelifi committed Sep 5, 2024
1 parent f5da393 commit ff3c0e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/groups/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ module.exports = function (Groups) {
}
}

mock_data = {data, timestamp}
mock_dat = {data, timestamp}

// Function to create group data
function createGroupData(mock_data, isSystem, isHidden, isPrivate,
function createGroupData(mock_dat, isSystem, isHidden, isPrivate,
disableJoinRequests, disableLeave, memberCount) {
data = mock_data.data
timestamp = mock_data.timestamp
data = mock_dat.data
timestamp = mock_dat.timestamp
return {
name: data.name,
slug: slugify(data.name),
Expand Down

0 comments on commit ff3c0e2

Please sign in to comment.