Skip to content

Commit

Permalink
refactor: rename private member variable
Browse files Browse the repository at this point in the history
  • Loading branch information
andygjp committed Aug 22, 2022
1 parent 2228e29 commit f8778d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DotNet.Project.LaunchSettings/JsonLaunchSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ namespace DotNet.Project.LaunchSettings;

public class JsonLaunchSettings : LaunchSettings
{
private readonly string _json;
private readonly string json;

public JsonLaunchSettings(string json) => _json = json;
public JsonLaunchSettings(string json) => this.json = json;

protected override Stream GetReader()
{
var memoryStream = new MemoryStream();
using var streamWriter = new StreamWriter(memoryStream, Encoding.UTF8, 1024, leaveOpen: true);
streamWriter.Write(_json);
streamWriter.Write(json);
streamWriter.Flush();
memoryStream.Position = 0;
streamWriter.Close();
Expand Down

0 comments on commit f8778d4

Please sign in to comment.