Storage Kit: Fix PVS 692
Merge two if statements that has same conditional expressions at line 198 and 201. Change-Id: I797a77d7f2b88ae2cacd8569fdd09c0d1a19d038 Reviewed-on: https://review.haiku-os.org/c/915 Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
Stephan Aßmus
parent
20312cfe7b
commit
1342ec2c91
@@ -195,10 +195,9 @@ AssociatedTypes::SetFileExtensions(const char *type, const BMessage *extensions)
|
|||||||
std::set<std::string> oldExtensions;
|
std::set<std::string> oldExtensions;
|
||||||
std::set<std::string> &newExtensions = fFileExtensions[type];
|
std::set<std::string> &newExtensions = fFileExtensions[type];
|
||||||
// Make a copy of the previous extensions
|
// Make a copy of the previous extensions
|
||||||
if (!err)
|
if (!err) {
|
||||||
oldExtensions = newExtensions;
|
oldExtensions = newExtensions;
|
||||||
|
|
||||||
if (!err) {
|
|
||||||
// Read through the list of new extensions, creating the new
|
// Read through the list of new extensions, creating the new
|
||||||
// file extensions list and adding the type as an associated type
|
// file extensions list and adding the type as an associated type
|
||||||
// for each extension
|
// for each extension
|
||||||
|
|||||||
Reference in New Issue
Block a user