Skip to content

Commit 8ba4f45

Browse files
committed
Code Quality: Removed warnings when Google Drive not detected
1 parent 050a7c1 commit 8ba4f45

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,12 @@ private static async Task Inspect(SqliteConnection database, string sqlCommand,
144144
using var googleDriveRegKey = Registry.CurrentUser.OpenSubKey(_googleDriveRegKeyName);
145145

146146
if (googleDriveRegKey is null)
147-
{
148-
_logger.LogWarning($"Google Drive registry key for key name '{_googleDriveRegKeyName}' not found.");
149147
return null;
150-
}
151148

152149
var googleDriveRegVal = googleDriveRegKey.GetValue(_googleDriveRegValName);
153150

154151
if (googleDriveRegVal is null)
155-
{
156-
_logger.LogWarning($"Google Drive registry value for value name '{_googleDriveRegValName}' not found.");
157152
return null;
158-
}
159153

160154
JsonDocument? googleDriveRegValueJson = null;
161155
try

0 commit comments

Comments
 (0)