Skip to content

Commit 526aa29

Browse files
committed
Refactor param to be implicit
1 parent 2f6e323 commit 526aa29

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
@@ -115,10 +115,10 @@ public static void ProcessOpenApiDocument(
115115
textWriter.Flush();
116116
}
117117

118-
private static Stream GetStream(string openapi)
118+
private static Stream GetStream(string input)
119119
{
120120
Stream stream;
121-
if (openapi.StartsWith("http"))
121+
if (input.StartsWith("http"))
122122
{
123123
var httpClient = new HttpClient(new HttpClientHandler()
124124
{
@@ -127,11 +127,11 @@ private static Stream GetStream(string openapi)
127127
{
128128
DefaultRequestVersion = HttpVersion.Version20
129129
};
130-
stream = httpClient.GetStreamAsync(openapi).Result;
130+
stream = httpClient.GetStreamAsync(input).Result;
131131
}
132132
else
133133
{
134-
var fileInput = new FileInfo(openapi);
134+
var fileInput = new FileInfo(input);
135135
stream = fileInput.OpenRead();
136136
}
137137

0 commit comments

Comments
 (0)