mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-31 11:54:24 +01:00
Remove warnings
This commit is contained in:
@@ -63,9 +63,6 @@ namespace BTCPayServer.Tests
|
||||
}
|
||||
options.AddArguments($"window-size={windowSize.Width}x{windowSize.Height}");
|
||||
options.AddArgument("shm-size=2g");
|
||||
//options.DebuggerAddress = $"127.0.0.1:{Utils.FreeTcpPort()}";
|
||||
|
||||
Logs.Tester.LogInformation("Chrome address: " + options.DebuggerAddress);
|
||||
|
||||
var cds = ChromeDriverService.CreateDefaultService(chromeDriverPath);
|
||||
cds.Port = Utils.FreeTcpPort();
|
||||
|
||||
@@ -29,7 +29,10 @@ namespace BTCPayServer.Controllers
|
||||
var usersQuery = _UserManager.Users;
|
||||
if (!string.IsNullOrWhiteSpace(model.SearchTerm))
|
||||
{
|
||||
#pragma warning disable CA1307 // Specify StringComparison
|
||||
// Entity Framework don't support StringComparison
|
||||
usersQuery = usersQuery.Where(u => u.Email.Contains(model.SearchTerm));
|
||||
#pragma warning restore CA1307 // Specify StringComparison
|
||||
}
|
||||
|
||||
if (sortOrder != null)
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace BTCPayServer.Plugins
|
||||
|
||||
public static bool IsExceptionByPlugin(Exception exception)
|
||||
{
|
||||
return _pluginAssemblies.Any(assembly => assembly.FullName.Contains(exception.Source));
|
||||
return _pluginAssemblies.Any(assembly => assembly.FullName.Contains(exception.Source, StringComparison.OrdinalIgnoreCase));
|
||||
}
|
||||
public static IMvcBuilder AddPlugins(this IMvcBuilder mvcBuilder, IServiceCollection serviceCollection,
|
||||
IConfiguration config, ILoggerFactory loggerFactory)
|
||||
|
||||
Reference in New Issue
Block a user