mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-31 14:25:16 +00:00
Fixed some Code Analysis warnings.
This commit is contained in:
@@ -51,9 +51,8 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
||||
foreach (string path in devicePaths) {
|
||||
string name = null;
|
||||
try {
|
||||
StreamReader reader = new StreamReader(path + "/device/name");
|
||||
name = reader.ReadLine();
|
||||
reader.Close();
|
||||
using (StreamReader reader = new StreamReader(path + "/device/name"))
|
||||
name = reader.ReadLine();
|
||||
} catch (IOException) { }
|
||||
switch (name) {
|
||||
case "f71858fg":
|
||||
|
Reference in New Issue
Block a user