Skip to content

Commit 5ab8381

Browse files
use private static option
1 parent 04f6ce7 commit 5ab8381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.Extensions.Configuration.AzureAppConfiguration/JsonKeyValueAdapter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace Microsoft.Extensions.Configuration.AzureAppConfiguration
1515
{
1616
internal class JsonKeyValueAdapter : IKeyValueAdapter
1717
{
18-
private JsonDocumentOptions _jsonParseOptions = new JsonDocumentOptions
18+
private static readonly JsonDocumentOptions JsonParseOptions = new JsonDocumentOptions
1919
{
2020
CommentHandling = JsonCommentHandling.Skip
2121
};
@@ -33,7 +33,7 @@ public Task<IEnumerable<KeyValuePair<string, string>>> ProcessKeyValue(Configura
3333

3434
try
3535
{
36-
using (JsonDocument document = JsonDocument.Parse(rootJson, _jsonParseOptions))
36+
using (JsonDocument document = JsonDocument.Parse(rootJson, JsonParseOptions))
3737
{
3838
keyValuePairs = new JsonFlattener().FlattenJson(document.RootElement);
3939
}

0 commit comments

Comments
 (0)