Skip to content

Commit

Permalink
PVS 104: duplicate if check.
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkomandy committed Jul 26, 2015
1 parent c13e346 commit 67d9a9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/kits/storage/mime/SupportingApps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 67d9a9c

Please sign in to comment.