Skip to content

Commit

Permalink
remove debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaboud committed Jun 20, 2022
1 parent 9650501 commit 6761947
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions file-sharing/src/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const spawnOpts = {
}

export async function getUsers() {
const users = [
return [
...(await useSpawn(['getent', '-s', 'files', 'passwd'], spawnOpts).promise()).stdout
.split('\n')
.map((record) => {
Expand All @@ -96,12 +96,10 @@ export async function getUsers() {
return { user, uid, domain: true, pretty: user + " (domain)" };
}).filter(user => user !== null)
].sort((a, b) => a.pretty.localeCompare(b.pretty));
// console.log(users);
return users;
}

export async function getGroups() {
const groups = [
return [
...(await useSpawn(['getent', '-s', 'files', 'group'], spawnOpts).promise()).stdout
.split('\n')
.map((record) => {
Expand All @@ -128,6 +126,4 @@ export async function getGroups() {
return { group, gid, domain: true, pretty: group + " (domain)" };
}).filter(group => group !== null)
].sort((a, b) => a.pretty.localeCompare(b.pretty));
console.log(groups);
return groups;
}

0 comments on commit 6761947

Please sign in to comment.