mirror of
https://github.com/bitwarden/server
synced 2025-12-11 05:43:35 +00:00
Fix Most Test Warnings (#4612)
* Add Collections Tests * Update CollectionRepository Implementation * Test Adding And Deleting Through Replace * Format * Fix Most Test Warnings * Format
This commit is contained in:
@@ -21,9 +21,9 @@ public static class ConfigurationExtensions
|
||||
public static Database[] GetDatabases(this IConfiguration config)
|
||||
{
|
||||
var typedConfig = config.Get<TypedConfig>();
|
||||
if (typedConfig.Databases == null)
|
||||
if (typedConfig?.Databases == null)
|
||||
{
|
||||
return Array.Empty<Database>();
|
||||
return [];
|
||||
}
|
||||
|
||||
return typedConfig.Databases.Where(d => d.Enabled).ToArray();
|
||||
|
||||
Reference in New Issue
Block a user