File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Microsoft.OpenApi.Hidi Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -115,10 +115,10 @@ public static void ProcessOpenApiDocument(
115
115
textWriter . Flush ( ) ;
116
116
}
117
117
118
- private static Stream GetStream ( string openapi )
118
+ private static Stream GetStream ( string input )
119
119
{
120
120
Stream stream ;
121
- if ( openapi . StartsWith ( "http" ) )
121
+ if ( input . StartsWith ( "http" ) )
122
122
{
123
123
var httpClient = new HttpClient ( new HttpClientHandler ( )
124
124
{
@@ -127,11 +127,11 @@ private static Stream GetStream(string openapi)
127
127
{
128
128
DefaultRequestVersion = HttpVersion . Version20
129
129
} ;
130
- stream = httpClient . GetStreamAsync ( openapi ) . Result ;
130
+ stream = httpClient . GetStreamAsync ( input ) . Result ;
131
131
}
132
132
else
133
133
{
134
- var fileInput = new FileInfo ( openapi ) ;
134
+ var fileInput = new FileInfo ( input ) ;
135
135
stream = fileInput . OpenRead ( ) ;
136
136
}
137
137
You can’t perform that action at this time.
0 commit comments