Hi I have pieces of code Where in a function is exported as a module and inside it we are validating some conditions.
If(title)
return true;
else
return 'message'
This gives off as error in sonar to return same type.
I can't return an array like
return [false,'message] as it would require change in 100s of files in repo.