Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
rysweet committed Jan 27, 2025
1 parent 580df1b commit 4e92ec2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dotnet/src/Microsoft.AutoGen/Core/RegistryStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public async Task<AgentsRegistryState> 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);
Expand Down

0 comments on commit 4e92ec2

Please sign in to comment.