mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
Use range indexers.
This commit is contained in:
@@ -133,7 +133,7 @@ public class FileExporter
|
||||
});
|
||||
|
||||
if(machineName.EndsWith(".zip", StringComparison.InvariantCultureIgnoreCase))
|
||||
machineName = machineName.Substring(0, machineName.Length - 4);
|
||||
machineName = machineName[..^4];
|
||||
|
||||
string machinePath = Path.Combine(_outPath, machineName);
|
||||
|
||||
@@ -338,7 +338,7 @@ public class FileExporter
|
||||
});
|
||||
|
||||
if(machineName.EndsWith(".zip", StringComparison.InvariantCultureIgnoreCase))
|
||||
machineName = machineName.Substring(0, machineName.Length - 4);
|
||||
machineName = machineName[..^4];
|
||||
|
||||
string machinePath = Path.Combine(_outPath, machineName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user