PVS 104: duplicate if check.

This commit is contained in:
Adrien Destugues 2015-07-26 15:09:45 +02:00
parent c13e346a48
commit 67d9a9cb16

View File

@ -165,10 +165,9 @@ SupportingApps::SetSupportedTypes(const char *app, const BMessage *types, bool f
std::set<std::string> &newTypes = fSupportedTypes[app];
std::set<std::string> &strandedTypes = fStrandedTypes[app];
// Make a copy of the previous types if we're doing a full sync
if (!err)
if (!err) {
oldTypes = newTypes;
if (!err) {
// Read through the list of new supported types, creating the new
// supported types list and adding the app as a supporting app for
// each type.