gochan-org / gochan

Assignment operators should not be used in return statements JS-0086
Anti-pattern
Minor
2 months ago2 years old
Arrow function should not return assignment
295	const board = currentBoard();
296	if(board === "") return; // not on a board
297	getThreadCooldown(board).then(cd => threadCooldown = cd);
298	getReplyCooldown(board).then(cd => replyCooldown = cd);299});
Arrow function should not return assignment
294$(() => {
295	const board = currentBoard();
296	if(board === "") return; // not on a board
297	getThreadCooldown(board).then(cd => threadCooldown = cd);298	getReplyCooldown(board).then(cd => replyCooldown = cd);
299});