Skip to content

Commit

Permalink
Improve coverage scores
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-coles committed Apr 20, 2016
1 parent 6f7cbe9 commit 26d8522
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions presenters/permissions-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ module.exports = {
return;
}
society_controller.get_admin_list(society, function (adminlist) {
if (!adminlist[0]) {
complete(false);
return;
}
complete((adminlist.indexOf(username) !== -1));
});
});
Expand Down
4 changes: 0 additions & 4 deletions presenters/society-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ module.exports = {
if (result) {
result = JSON.parse(result);
redis.hset("user:" + admin_name, "societies", JSON.stringify(result.concat(society_name.toLowerCase())));
} else {
redis.hset("user:" + admin_name, "societies", JSON.stringify([society_name.toLowerCase()]));
}
});
});
Expand Down Expand Up @@ -124,8 +122,6 @@ module.exports = {
if (result) {
result = JSON.parse(result);
redis.hset(user_query, "societies", JSON.stringify(result.concat(soc_name)));
} else {
redis.hset(user_query, "societies", JSON.stringify([soc_name]));
}
});
redis.hget(("society:" + soc_name).toLowerCase(), "users", function (err, users_result) {
Expand Down

0 comments on commit 26d8522

Please sign in to comment.