mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 01:35:06 +01:00
Remove unnecessary else blocks
This commit is contained in:
@@ -264,14 +264,12 @@ public:
|
||||
{
|
||||
return ObjectFactory::CreateObjectFromJsonFile(*this, ori->Path);
|
||||
}
|
||||
else if (String::Equals(extension, ".parkobj", true))
|
||||
if (String::Equals(extension, ".parkobj", true))
|
||||
{
|
||||
return ObjectFactory::CreateObjectFromZipFile(*this, ori->Path);
|
||||
}
|
||||
else
|
||||
{
|
||||
return ObjectFactory::CreateObjectFromLegacyFile(*this, ori->Path.c_str());
|
||||
}
|
||||
|
||||
return ObjectFactory::CreateObjectFromLegacyFile(*this, ori->Path.c_str());
|
||||
}
|
||||
|
||||
void RegisterLoadedObject(const ObjectRepositoryItem* ori, std::unique_ptr<Object>&& object) override
|
||||
@@ -447,12 +445,10 @@ private:
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Console::Error::WriteLine("Object conflict: '%s'", conflict->Path.c_str());
|
||||
Console::Error::WriteLine(" : '%s'", item.Path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
Console::Error::WriteLine("Object conflict: '%s'", conflict->Path.c_str());
|
||||
Console::Error::WriteLine(" : '%s'", item.Path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
void ScanObject(const std::string& path)
|
||||
|
||||
Reference in New Issue
Block a user