Hey guys, so I’m a bit confused with this matter.
So which method actually performs better and is more secure? And why are both used in common in a file written by the same person?
// METHOD 1
bool SomeFunction()
{
if (Positive)
{
// do stuff
return true;
}
else return false;
}
// METHOD 2
bool SomeFunction()
{
if (Negative) return false;
// do stuff
return true;
}