Skip to content

Commit 6d717a7

Browse files
committed
small cleanup changes
1 parent c802626 commit 6d717a7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Files.App/Utils/Cloud/Detector/GoogleDriveCloudDetector.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ await FilesystemTasks.Wrap(() => StorageFile.GetFileFromPathAsync(Path.Combine(a
9696

9797
#if DEBUG
9898
Debug.WriteLine("YIELD RETURNING from `GoogleDriveCloudDetector.GetProviders` (media): ");
99-
Debug.WriteLine($"name={title}; path={path}");
99+
Debug.WriteLine($"Name: {title}; SyncFolder: {path}");
100100
#endif
101101

102102
yield return new CloudProvider(CloudProviders.GoogleDrive)
@@ -124,27 +124,27 @@ await FilesystemTasks.Wrap(() => StorageFile.GetFileFromPathAsync(Path.Combine(a
124124
};
125125
}
126126

127-
private static async Task Inspect(SqliteConnection database, string sqlCommand, string contentsOf)
127+
private static async Task Inspect(SqliteConnection database, string sqlCommand, string targetDescription)
128128
{
129129
await using var cmdTablesAll = new SqliteCommand(sqlCommand, database);
130130
var reader = await cmdTablesAll.ExecuteReaderAsync();
131-
var colNamesList = Enumerable.Range(0, reader.FieldCount).Select(j => reader.GetName(j)).ToList();
131+
var colNamesList = Enumerable.Range(0, reader.FieldCount).Select(reader.GetName).ToList();
132132

133133
#if DEBUG
134-
Debug.WriteLine($"BEGIN LOGGING of {contentsOf} contents");
134+
Debug.WriteLine($"BEGIN LOGGING of {targetDescription}");
135135
#endif
136136

137137
for (int index = 0; reader.Read() is not false; index++)
138138
{
139139
var colVals = new object[reader.FieldCount];
140140
reader.GetValues(colVals);
141141

142-
colVals.Select((val, j) => $"row {index}: column {j}: {colNamesList[j]}: {val}")
142+
colVals.Select((val, i) => $"row {index}: column {i}: {colNamesList[i]}: {val}")
143143
.ToList().ForEach(s => Debug.WriteLine(s));
144144
}
145145

146146
#if DEBUG
147-
Debug.WriteLine($"END LOGGING of {contentsOf} contents");
147+
Debug.WriteLine($"END LOGGING of {targetDescription} contents");
148148
#endif
149149
}
150150

0 commit comments

Comments
 (0)