Skip to content

Commit

Permalink
Handle gratuitous boolean experession.
Browse files Browse the repository at this point in the history
  • Loading branch information
peombwa committed Dec 5, 2023
1 parent 1626b7e commit b25d8cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/TypeExtensions/ApiManifestDocumentExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ public static async Task<OpenAIPluginManifest> ToOpenAIPluginManifestAsync(this
}
else
{
var result = await ParsingHelpers.ParseOpenApiAsync(new Uri(apiDependency?.ApiDescriptionUrl), false, cancellationToken).ConfigureAwait(false);
var result = await ParsingHelpers.ParseOpenApiAsync(new Uri(apiDependency!.ApiDescriptionUrl), false, cancellationToken).ConfigureAwait(false);
if (string.IsNullOrWhiteSpace(openApiPath))
openApiPath = apiDependency?.ApiDescriptionUrl;
openApiPath = apiDependency.ApiDescriptionUrl;
return apiManifestDocument.ToOpenAIPluginManifest(result.OpenApiDocument, logoUrl, legalInfoUrl, openApiPath!);
}
}
Expand Down

0 comments on commit b25d8cf

Please sign in to comment.