Skip to content

Commit 025dc45

Browse files
committed
Automated dotnet-format update from commit b741026 on refs/heads/dev
1 parent b741026 commit 025dc45

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

src/HTTPie/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
await using var services = serviceCollection.BuildServiceProvider();
3434

3535
// output helps when no argument or there's only "-h"/"/h"
36-
if (args is not { Length: > 0 } ||
36+
if (args is not { Length: > 0 } ||
3737
(args.Length == 1 && args[0] is "-h" or "/h"))
3838
{
3939
args = new[] { "--help" };

src/HTTPie/Utilities/Helpers.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static class Helpers
2828
HttpMethod.Delete.Method,
2929
HttpMethod.Options.Method
3030
};
31-
31+
3232
public static readonly JsonSerializerOptions JsonSerializerOptions = new()
3333
{
3434
WriteIndented = true,
@@ -81,7 +81,7 @@ private static Parser ConstructCommand(this IServiceProvider serviceProvider, Fu
8181
{
8282
var context = serviceProvider.GetRequiredService<HttpContext>();
8383
context.InvocationContext = invocationContext;
84-
84+
8585
var requestModel = context.Request;
8686
requestModel.ParseResult = invocationContext.ParseResult;
8787

@@ -105,7 +105,7 @@ private static Parser ConstructCommand(this IServiceProvider serviceProvider, Fu
105105
.WhereNotNull()
106106
.Where(x => !x.StartsWith('-'))
107107
.ToArray();
108-
108+
109109
await next(invocationContext);
110110
})
111111
;
@@ -118,7 +118,7 @@ private static Command InitializeCommandInternal(IServiceProvider serviceProvide
118118
{
119119
Name = "http",
120120
};
121-
121+
122122
// var methodArgument = new Argument<HttpMethod>("method")
123123
// {
124124
// Description = "Request method",
@@ -128,14 +128,14 @@ private static Command InitializeCommandInternal(IServiceProvider serviceProvide
128128
// var allowedMethods = HttpMethods.ToArray();
129129
// methodArgument.AddCompletions(allowedMethods);
130130
// command.AddArgument(methodArgument);
131-
131+
132132
// var urlArgument = new Argument<string>("url")
133133
// {
134134
// Description = "Request url",
135135
// Arity = ArgumentArity.ExactlyOne
136136
// };
137137
// command.AddArgument(urlArgument);
138-
138+
139139
// options
140140
foreach (var option in
141141
serviceProvider
@@ -151,7 +151,7 @@ private static Command InitializeCommandInternal(IServiceProvider serviceProvide
151151
command.AddOption(option);
152152
}
153153
command.TreatUnmatchedTokensAsErrors = false;
154-
154+
155155
handler ??= async invocationContext =>
156156
{
157157
var context = serviceProvider.ResolveRequiredService<HttpContext>();
@@ -164,7 +164,7 @@ await serviceProvider.ResolveRequiredService<IRequestExecutor>()
164164
command.SetHandler(handler);
165165
return command;
166166
}
167-
167+
168168
public static IServiceCollection RegisterApplicationServices(this IServiceCollection serviceCollection)
169169
{
170170
serviceCollection
@@ -230,13 +230,13 @@ public static IServiceCollection RegisterApplicationServices(this IServiceCollec
230230
.AddResponseMiddleware<JsonSchemaValidationMiddleware>()
231231
;
232232
}
233-
233+
234234
public static async Task<int> Handle(this IServiceProvider services, string[] args)
235235
{
236236
var commandParser = services.ConstructCommand();
237237
return await commandParser.InvokeAsync(args);
238238
}
239-
239+
240240
public static async Task<int> Handle(this IServiceProvider services, string commandLine, Func<InvocationContext, Task>? handler = null)
241241
{
242242
var commandParser = services.ConstructCommand(handler);

tests/HTTPie.UnitTest/Implement/OutputFormatterTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace HTTPie.UnitTest.Implement;
99
public class OutputFormatterTest
1010
{
1111
private readonly OutputFormatter _outputFormatter;
12-
12+
1313
public OutputFormatterTest(IServiceProvider serviceProvider)
1414
{
1515
_outputFormatter = new OutputFormatter(

tests/HTTPie.UnitTest/Middleware/RequestDataMiddlewareTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public RequestDataMiddlewareTest(IServiceProvider serviceProvider)
1313
{
1414
_serviceProvider = serviceProvider;
1515
}
16-
16+
1717
[Theory]
1818
[InlineData("http://localhost:5000/api/values?name=test&hello=world")]
1919
[InlineData("https://reservation.weihanli.xyz/health?name=test&hello=world")]

0 commit comments

Comments
 (0)