Skip to content

Commit 9a04b66

Browse files
committed
fixed warning in RGBController_ZotacV2GPU.cpp
1 parent 37295ad commit 9a04b66

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Controllers/ZotacV2GPUController/RGBController_ZotacV2GPU.cpp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,8 @@ RGBController_ZotacV2GPU::RGBController_ZotacV2GPU(ZotacV2GPUController* control
5353
location = controller->GetDeviceLocation();
5454
type = DEVICE_TYPE_GPU;
5555

56-
try
57-
{
58-
config = ZOTAC_V2_GPU_CONFIG.at(controller->GetVersion());
59-
}
60-
catch(std::out_of_range)
61-
{
62-
LOG_ERROR("No zone config found for %s", version.c_str());
63-
config = ZotacV2GPUConfig();
64-
}
56+
config = ZOTAC_V2_GPU_CONFIG.at(controller->GetVersion());
57+
6558
version += std::to_string(config.numberOfZones) + " zones, "
6659
+ (config.supportsExternalLEDStrip ? "with" : "without") + " external LED strip support";
6760

0 commit comments

Comments
 (0)