From 6d717a77734e18b70f8735b66b90fea9df256f4a Mon Sep 17 00:00:00 2001 From: Tim <81175852+wharvex@users.noreply.github.com> Date: Mon, 12 Aug 2024 18:54:16 -0400 Subject: [PATCH] small cleanup changes --- .../Utils/Cloud/Detector/GoogleDriveCloudDetector.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Files.App/Utils/Cloud/Detector/GoogleDriveCloudDetector.cs b/src/Files.App/Utils/Cloud/Detector/GoogleDriveCloudDetector.cs index d239abdfe3469..64d10c3ac507f 100644 --- a/src/Files.App/Utils/Cloud/Detector/GoogleDriveCloudDetector.cs +++ b/src/Files.App/Utils/Cloud/Detector/GoogleDriveCloudDetector.cs @@ -96,7 +96,7 @@ await FilesystemTasks.Wrap(() => StorageFile.GetFileFromPathAsync(Path.Combine(a #if DEBUG Debug.WriteLine("YIELD RETURNING from `GoogleDriveCloudDetector.GetProviders` (media): "); - Debug.WriteLine($"name={title}; path={path}"); + Debug.WriteLine($"Name: {title}; SyncFolder: {path}"); #endif yield return new CloudProvider(CloudProviders.GoogleDrive) @@ -124,14 +124,14 @@ await FilesystemTasks.Wrap(() => StorageFile.GetFileFromPathAsync(Path.Combine(a }; } - private static async Task Inspect(SqliteConnection database, string sqlCommand, string contentsOf) + private static async Task Inspect(SqliteConnection database, string sqlCommand, string targetDescription) { await using var cmdTablesAll = new SqliteCommand(sqlCommand, database); var reader = await cmdTablesAll.ExecuteReaderAsync(); - var colNamesList = Enumerable.Range(0, reader.FieldCount).Select(j => reader.GetName(j)).ToList(); + var colNamesList = Enumerable.Range(0, reader.FieldCount).Select(reader.GetName).ToList(); #if DEBUG - Debug.WriteLine($"BEGIN LOGGING of {contentsOf} contents"); + Debug.WriteLine($"BEGIN LOGGING of {targetDescription}"); #endif for (int index = 0; reader.Read() is not false; index++) @@ -139,12 +139,12 @@ private static async Task Inspect(SqliteConnection database, string sqlCommand, var colVals = new object[reader.FieldCount]; reader.GetValues(colVals); - colVals.Select((val, j) => $"row {index}: column {j}: {colNamesList[j]}: {val}") + colVals.Select((val, i) => $"row {index}: column {i}: {colNamesList[i]}: {val}") .ToList().ForEach(s => Debug.WriteLine(s)); } #if DEBUG - Debug.WriteLine($"END LOGGING of {contentsOf} contents"); + Debug.WriteLine($"END LOGGING of {targetDescription} contents"); #endif }