Minor changes

This commit is contained in:
Duc committed 2025-01-06 11:29:57 -07:00
1 parent d8d73197a9
commit c689fcb7f9
6 files changed
+22 -28

No files matched your search

@@ -59,12 +59,13 @@ namespace ProgramLib
lock (syncObjDict[moduleName])
{
if (!_powerSupplyDataDict.ContainsKey(moduleName))
PowerSupplyData data = null;
if (_powerSupplyDataDict.ContainsKey(moduleName))
{
throw new Exception($"{moduleName} is invalid");
data = _powerSupplyDataDict[moduleName];
}
return _powerSupplyDataDict[moduleName];
return data;
}
}