gochan-org / gochan

Consider using arrow functions for callbacks JS-0241
Anti-pattern
Minor
2 months ago2 years old
Unexpected function expression
 80function setupManagementEvents() {
 81	if(staffInfo === null || !staffInfo.actions) return;
 82	$<HTMLSelectElement>("select.post-actions").each(addManageEvents);
 83	$(document).on("postDropdownAdded", function(_e, data) { 84		if(!data.dropdown) return; 85		data.dropdown.append("<option>Posts from this IP</option>"); 86		data.dropdown.append("<option>Ban IP address</option>"); 87	}); 88}
 89
 90interface BanFileJSON {