ci/cd: fix whitespaces (#11749)

This commit is contained in:
Diego Heras
2021-05-16 20:13:54 +02:00
committed by GitHub
parent 519d1ea929
commit aca4a16bae
79 changed files with 333 additions and 294 deletions

View File

@@ -83,7 +83,7 @@ namespace Jackett.Server.Controllers
[HttpPost]
[Route("{indexerId?}/Config")]
[TypeFilter(typeof(RequiresIndexer))]
public async Task<IActionResult> UpdateConfig([FromBody]Common.Models.DTO.ConfigItem[] config)
public async Task<IActionResult> UpdateConfig([FromBody] Common.Models.DTO.ConfigItem[] config)
{
// invalidate cache for this indexer
cacheService.CleanIndexerCache(CurrentIndexer);

View File

@@ -139,7 +139,7 @@ namespace Jackett.Server.Controllers
if (!resultController.CurrentIndexer.CanHandleQuery(resultController.CurrentQuery))
{
context.Result = ResultsController.GetErrorActionResult(context.RouteData, HttpStatusCode.BadRequest, 201,
context.Result = ResultsController.GetErrorActionResult(context.RouteData, HttpStatusCode.BadRequest, 201,
$"{resultController.CurrentIndexer.Id} does not support the requested query. " +
"Please check the capabilities (t=caps) and make sure the search mode and parameters are supported.");
@@ -302,7 +302,7 @@ namespace Jackett.Server.Controllers
[Route("[action]/{ignored?}")]
[HttpGet]
public async Task<IActionResult> Torznab([FromQuery]TorznabRequest request)
public async Task<IActionResult> Torznab([FromQuery] TorznabRequest request)
{
if (string.Equals(CurrentQuery.QueryType, "caps", StringComparison.InvariantCultureIgnoreCase))
{
@@ -482,7 +482,7 @@ namespace Jackett.Server.Controllers
[Route("[action]/{ignored?}")]
[HttpGet]
public async Task<TorrentPotatoResponse> Potato([FromQuery]TorrentPotatoRequest request)
public async Task<TorrentPotatoResponse> Potato([FromQuery] TorrentPotatoRequest request)
{
var result = await CurrentIndexer.ResultsForQuery(CurrentQuery);

View File

@@ -44,7 +44,7 @@ namespace Jackett.Server.Controllers
}
[HttpPost]
public IActionResult AdminPassword([FromBody]string password)
public IActionResult AdminPassword([FromBody] string password)
{
var oldPassword = serverConfig.AdminPassword;
if (string.IsNullOrEmpty(password))
@@ -71,7 +71,7 @@ namespace Jackett.Server.Controllers
[ActionName("Config")]
[HttpPost]
public IActionResult UpdateConfig([FromBody]Common.Models.DTO.ServerConfig config)
public IActionResult UpdateConfig([FromBody] Common.Models.DTO.ServerConfig config)
{
var webHostRestartNeeded = false;

View File

@@ -11,7 +11,7 @@ using NLog;
namespace Jackett.Server.Services
{
// This code is Windows specific but we are already doing the checks our way
// This code is Windows specific but we are already doing the checks our way
#pragma warning disable CA1416
public class ServiceConfigService : IServiceConfigService
{