From 4e92ec229f04b13d9aabbc595bb12ae9a6db498b Mon Sep 17 00:00:00 2001 From: Ryan Sweet Date: Mon, 27 Jan 2025 00:14:38 -0800 Subject: [PATCH] format --- dotnet/src/Microsoft.AutoGen/Core/RegistryStorage.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotnet/src/Microsoft.AutoGen/Core/RegistryStorage.cs b/dotnet/src/Microsoft.AutoGen/Core/RegistryStorage.cs index e5435024491..aab624ec8dd 100644 --- a/dotnet/src/Microsoft.AutoGen/Core/RegistryStorage.cs +++ b/dotnet/src/Microsoft.AutoGen/Core/RegistryStorage.cs @@ -21,7 +21,8 @@ public async Task ReadStateAsync(CancellationToken cancella { string json; var state = new AgentsRegistryState(); - if (File.Exists(FilePath)) { json = await File.ReadAllTextAsync(FilePath, cancellationToken).ConfigureAwait(false); } else + if (File.Exists(FilePath)) { json = await File.ReadAllTextAsync(FilePath, cancellationToken).ConfigureAwait(false); } + else { _logger.LogWarning("Registry file {FilePath} does not exist, starting with an empty Registry", FilePath); await WriteStateAsync(state, cancellationToken, true).ConfigureAwait(false);