mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 16:43:58 -07:00
Cleaned up environment detection
This commit is contained in:
parent
cf77104a02
commit
f4c202441c
35 changed files with 112 additions and 95 deletions
|
@ -1,3 +1,4 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using NLog;
|
||||
using Nancy;
|
||||
|
@ -11,7 +12,7 @@ namespace NzbDrone.Api.Frontend.Mappers
|
|||
{
|
||||
private readonly IDiskProvider _diskProvider;
|
||||
private readonly Logger _logger;
|
||||
private readonly bool _caseSensitive;
|
||||
private readonly StringComparison _caseSensitive;
|
||||
|
||||
private static readonly NotFoundResponse NotFoundResponse = new NotFoundResponse();
|
||||
|
||||
|
@ -22,7 +23,7 @@ namespace NzbDrone.Api.Frontend.Mappers
|
|||
|
||||
if (!RuntimeInfoBase.IsProduction)
|
||||
{
|
||||
_caseSensitive = true;
|
||||
_caseSensitive = StringComparison.OrdinalIgnoreCase;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue