From b7e35c0554ebc0ea1a079f60e4eae0853c34eca5 Mon Sep 17 00:00:00 2001 From: Gustave Monce Date: Sat, 12 Oct 2024 17:20:54 +0200 Subject: [PATCH] Some cleanup --- WPinternals/Models/Lumia/MSR/LumiaDownloadModel.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/WPinternals/Models/Lumia/MSR/LumiaDownloadModel.cs b/WPinternals/Models/Lumia/MSR/LumiaDownloadModel.cs index 41ab8f5..b6d0126 100644 --- a/WPinternals/Models/Lumia/MSR/LumiaDownloadModel.cs +++ b/WPinternals/Models/Lumia/MSR/LumiaDownloadModel.cs @@ -51,7 +51,7 @@ internal static string[] SearchEmergencyFiles(string ProductType) string Config = null; try { - Config = Client.DownloadString("https://repairavoidance.blob.core.windows.net/packages/EmergencyFlash/" + ProductType + "/emergency_flash_config.xml"); + Config = Client.DownloadString($"https://repairavoidance.blob.core.windows.net/packages/EmergencyFlash/{ProductType}/emergency_flash_config.xml"); } catch { @@ -68,7 +68,7 @@ internal static string[] SearchEmergencyFiles(string ProductType) if (Node != null) { FileName = Node.Attributes["image_path"].InnerText; - Src = "https://repairavoidance.blob.core.windows.net/packages/EmergencyFlash/" + ProductType + "/" + FileName; + Src = $"https://repairavoidance.blob.core.windows.net/packages/EmergencyFlash/{ProductType}/{FileName}"; LogFile.Log("Hex-file: " + Src); Result.Add(Src); } @@ -78,7 +78,7 @@ internal static string[] SearchEmergencyFiles(string ProductType) if (Node != null) { FileName = Node.Attributes["image_path"].InnerText; - Src = "https://repairavoidance.blob.core.windows.net/packages/EmergencyFlash/" + ProductType + "/" + FileName; + Src = $"https://repairavoidance.blob.core.windows.net/packages/EmergencyFlash/{ProductType}/{FileName}"; LogFile.Log("Mbn-file: " + Src); Result.Add(Src); } @@ -87,7 +87,7 @@ internal static string[] SearchEmergencyFiles(string ProductType) foreach (XmlNode SubNode in Doc.SelectNodes("//emergency_flash_config/first_boot_images/first_boot_image")) { FileName = SubNode.Attributes["image_path"].InnerText; - Src = "https://repairavoidance.blob.core.windows.net/packages/EmergencyFlash/" + ProductType + "/" + FileName; + Src = $"https://repairavoidance.blob.core.windows.net/packages/EmergencyFlash/{ProductType}/{FileName}"; LogFile.Log("Firehose-programmer-file: " + Src); Result.Add(Src); } @@ -96,7 +96,7 @@ internal static string[] SearchEmergencyFiles(string ProductType) foreach (XmlNode SubNode in Doc.SelectNodes("//emergency_flash_config/second_boot_firehose_single_image/firehose_image")) { FileName = SubNode.Attributes["image_path"].InnerText; - Src = "https://repairavoidance.blob.core.windows.net/packages/EmergencyFlash/" + ProductType + "/" + FileName; + Src = $"https://repairavoidance.blob.core.windows.net/packages/EmergencyFlash/{ProductType}/{FileName}"; LogFile.Log("Firehose-payload-file: " + Src); Result.Add(Src); }