Cleaned up environment detection

This commit is contained in:
Keivan Beigi 2014-12-07 12:54:07 -08:00
parent cf77104a02
commit f4c202441c
35 changed files with 112 additions and 95 deletions

View file

@ -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;
}
}