Skip to content

Commit 51e85a7

Browse files
committed
Refactor param to be more implicit
1 parent ef7640f commit 51e85a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Microsoft.OpenApi.Hidi/OpenApiService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@ public static OpenApiDocument FixReferences(OpenApiDocument document)
184184
return doc;
185185
}
186186

187-
private static Stream GetStream(string openapi)
187+
private static Stream GetStream(string input)
188188
{
189189
Stream stream;
190-
if (openapi.StartsWith("http"))
190+
if (input.StartsWith("http"))
191191
{
192192
var httpClient = new HttpClient(new HttpClientHandler()
193193
{
@@ -196,11 +196,11 @@ private static Stream GetStream(string openapi)
196196
{
197197
DefaultRequestVersion = HttpVersion.Version20
198198
};
199-
stream = httpClient.GetStreamAsync(openapi).Result;
199+
stream = httpClient.GetStreamAsync(input).Result;
200200
}
201201
else
202202
{
203-
var fileInput = new FileInfo(openapi);
203+
var fileInput = new FileInfo(input);
204204
stream = fileInput.OpenRead();
205205
}
206206

0 commit comments

Comments
 (0)