mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
ci/cd: fix whitespaces (#11749)
This commit is contained in:
@@ -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);
|
||||
|
@@ -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);
|
||||
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user