File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
src/Microsoft.OpenApi/Writers Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -39,25 +39,27 @@ public abstract class OpenApiWriterBase : IOpenApiWriter
39
39
/// Initializes a new instance of the <see cref="OpenApiWriterBase"/> class.
40
40
/// </summary>
41
41
/// <param name="textWriter">The text writer.</param>
42
- public OpenApiWriterBase ( TextWriter textWriter )
42
+ public OpenApiWriterBase ( TextWriter textWriter ) : this ( textWriter , null )
43
43
{
44
- Writer = textWriter ;
45
- Writer . NewLine = "\n " ;
46
-
47
- Scopes = new Stack < Scope > ( ) ;
48
44
}
49
45
50
46
/// <summary>
51
47
/// Initializes a new instance of the <see cref="OpenApiWriterBase"/> class.
52
48
/// </summary>
53
49
/// <param name="textWriter"></param>
54
50
/// <param name="settings"></param>
55
- public OpenApiWriterBase ( TextWriter textWriter , OpenApiWriterSettings settings = null ) : this ( textWriter )
51
+ public OpenApiWriterBase ( TextWriter textWriter , OpenApiWriterSettings settings = null )
56
52
{
53
+ Writer = textWriter ;
54
+ Writer . NewLine = "\n " ;
55
+
56
+ Scopes = new Stack < Scope > ( ) ;
57
+
57
58
if ( settings == null )
58
59
{
59
60
settings = new OpenApiWriterSettings ( ) ;
60
61
}
62
+
61
63
Settings = settings ;
62
64
}
63
65
You can’t perform that action at this time.
0 commit comments