Showing 2 of 13 total issues
Function compareValues
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const compareValues = (value1, value2) => {
if (value1 === value2) {
return {
type: 'unchanged',
data: value1,
Avoid too many return
statements within this function. Open
Open
return {
type: 'updated',
data: [value2, value1],
};