diff options
| author | Patrick Barron <18354464+barronpm@users.noreply.github.com> | 2020-06-20 00:49:35 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-20 00:49:35 +0000 |
| commit | e26f487fc8c7f0c5e2926c87845d030ff64ab60d (patch) | |
| tree | b29fa4d760839c7ab2444488e87a07bb368d764c /Jellyfin.Api/Controllers/PluginsController.cs | |
| parent | c3915cdb78fc1c5863343cc9d97897d4f7681cc3 (diff) | |
| parent | d820c0fff50a79d85349660f507e820704d80d45 (diff) | |
Merge pull request #3377 from crobibero/api-pragma
Convert pragma to SuppressMessage
Diffstat (limited to 'Jellyfin.Api/Controllers/PluginsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/PluginsController.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Jellyfin.Api/Controllers/PluginsController.cs b/Jellyfin.Api/Controllers/PluginsController.cs index fdb2f4c35..6075544cf 100644 --- a/Jellyfin.Api/Controllers/PluginsController.cs +++ b/Jellyfin.Api/Controllers/PluginsController.cs @@ -1,7 +1,6 @@ -#pragma warning disable CA1801 - -using System; +using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text.Json; using System.Threading.Tasks; @@ -46,6 +45,7 @@ namespace Jellyfin.Api.Controllers /// <response code="200">Installed plugins returned.</response> /// <returns>List of currently installed plugins.</returns> [HttpGet] + [SuppressMessage("Microsoft.Performance", "CA1801:ReviewUnusedParameters", MessageId = "isAppStoreEnabled", Justification = "Imported from ServiceStack")] public ActionResult<IEnumerable<PluginInfo>> GetPlugins([FromRoute] bool? isAppStoreEnabled) { return Ok(_appHost.Plugins.OrderBy(p => p.Name).Select(p => p.GetPluginInfo())); |
