mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use index from end expression.
This commit is contained in:
@@ -117,7 +117,7 @@ namespace Aaru.Devices.FreeBSD
|
||||
else
|
||||
{
|
||||
deviceInfo.Vendor = separated[0];
|
||||
deviceInfo.Model = separated[separated.Length - 1];
|
||||
deviceInfo.Model = separated[^1];
|
||||
}
|
||||
|
||||
deviceInfo.Serial = idt.Value.SerialNumber;
|
||||
|
||||
Reference in New Issue
Block a user