Minor changes
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user