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