project/core/templates/static/js/notifications.js
Function render_notifications
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var render_notifications = function(data) {
var unreadCount = parseInt(data.unread_count);
if (unreadCount === 0) {
$('#notify-count-wrapper').addClass('hide');
$('#notify-icon').html('notifications_none').removeClass('active');