lib/modules/Messages/styles/javascript/inbox.js
Function loadConversations
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadConversations() {
sendRequest({}, "messages", "load", function (res) {
if (typeof res.conversations !== "undefined" && res.conversations !== null && res.conversations.length > 0) {
$(".inbox-empty,.inbox-loader").hide();
$(".inbox-item").remove();
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (i === 3) {
userstring += ", +" + (us.length - 3);
break;
}
- Create a ticketCreate a ticket