small code cleanup in block class

This commit is contained in:
itsmattkc
2019-11-23 01:56:13 +09:00
parent bc9b7bc4f0
commit 9131b32be4
+1 -5
View File
@@ -229,11 +229,7 @@ void Block::CopyParameters(Block *source, Block *dest)
void Block::Link(Block *a, Block *b)
{
if (a == b) {
return;
}
if (a == nullptr || b == nullptr) {
if (a == b || a == nullptr || b == nullptr) {
return;
}