Use index from end expression.

This commit is contained in:
2020-04-22 00:22:34 +01:00
parent 961f4d8652
commit 5042b7f1e8
15 changed files with 41 additions and 36 deletions

View File

@@ -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;