Convert functions and properties to expression bodies when able (#7312)

Convert functions and properties to expression bodies when able
This commit is contained in:
Cory
2020-02-25 10:08:03 -06:00
committed by GitHub
parent 2f91d99e19
commit 889a8da4e5
136 changed files with 726 additions and 1512 deletions

View File

@@ -56,10 +56,7 @@ namespace Jackett.Server.Controllers
}
[HttpPost]
public void Update()
{
updater.CheckForUpdatesNow();
}
public void Update() => updater.CheckForUpdatesNow();
[HttpGet]
public Common.Models.DTO.ServerConfig Config()
@@ -202,9 +199,6 @@ namespace Jackett.Server.Controllers
}
[HttpGet]
public List<CachedLog> Logs()
{
return logCache.Logs;
}
public List<CachedLog> Logs() => logCache.Logs;
}
}