Skip to content

Commit

Permalink
make property and method static
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieKimani1 committed Nov 25, 2024
1 parent 9b237c6 commit 171241e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Microsoft.OpenApi.Workbench/MainModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class MainModel : INotifyPropertyChanged
/// </summary>
private OpenApiSpecVersion _version = OpenApiSpecVersion.OpenApi3_0;

private HttpClient _httpClient = new();
private static readonly HttpClient _httpClient = new();

public string Input
{
Expand Down Expand Up @@ -331,7 +331,7 @@ private string WriteContents(OpenApiDocument document)
return new StreamReader(outputStream).ReadToEnd();
}

private MemoryStream CreateStream(string text)
private static MemoryStream CreateStream(string text)
{
var stream = new MemoryStream();
var writer = new StreamWriter(stream);
Expand Down

0 comments on commit 171241e

Please sign in to comment.