fix return value and avoid unnecessary extra conditional
This commit is contained in:
parent
1168ffecad
commit
a4692389b8
@ -370,11 +370,11 @@ TransportMasterManager::remove (std::string const & name)
|
||||
}
|
||||
}
|
||||
|
||||
if (ret == 0 && tm) {
|
||||
if (ret == 0) {
|
||||
Removed (tm);
|
||||
}
|
||||
|
||||
return -1;
|
||||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user