Use file-scoped namespaces (#842)
This commit is contained in:
@@ -6,25 +6,24 @@
|
||||
|
||||
using System.Text;
|
||||
|
||||
namespace LibreHardwareMonitor.Hardware.Storage
|
||||
namespace LibreHardwareMonitor.Hardware.Storage;
|
||||
|
||||
internal sealed class StorageGeneric : AbstractStorage
|
||||
{
|
||||
internal sealed class StorageGeneric : AbstractStorage
|
||||
private StorageGeneric(StorageInfo storageInfo, string name, string firmwareRevision, int index, ISettings settings)
|
||||
: base(storageInfo, name, firmwareRevision, "hdd", index, settings)
|
||||
{
|
||||
private StorageGeneric(StorageInfo storageInfo, string name, string firmwareRevision, int index, ISettings settings)
|
||||
: base(storageInfo, name, firmwareRevision, "hdd", index, settings)
|
||||
{
|
||||
CreateSensors();
|
||||
}
|
||||
|
||||
public static AbstractStorage CreateInstance(StorageInfo info, ISettings settings)
|
||||
{
|
||||
string name = string.IsNullOrEmpty(info.Name) ? "Generic Hard Disk" : info.Name;
|
||||
string firmwareRevision = string.IsNullOrEmpty(info.Revision) ? "Unknown" : info.Revision;
|
||||
return new StorageGeneric(info, name, firmwareRevision, info.Index, settings);
|
||||
}
|
||||
|
||||
protected override void UpdateSensors() { }
|
||||
|
||||
protected override void GetReport(StringBuilder r) { }
|
||||
CreateSensors();
|
||||
}
|
||||
}
|
||||
|
||||
public static AbstractStorage CreateInstance(StorageInfo info, ISettings settings)
|
||||
{
|
||||
string name = string.IsNullOrEmpty(info.Name) ? "Generic Hard Disk" : info.Name;
|
||||
string firmwareRevision = string.IsNullOrEmpty(info.Revision) ? "Unknown" : info.Revision;
|
||||
return new StorageGeneric(info, name, firmwareRevision, info.Index, settings);
|
||||
}
|
||||
|
||||
protected override void UpdateSensors() { }
|
||||
|
||||
protected override void GetReport(StringBuilder r) { }
|
||||
}
|
||||
Reference in New Issue
Block a user