Skip to content

Commit

Permalink
IgnoreDatabases should be optional
Browse files Browse the repository at this point in the history
fixes #36
  • Loading branch information
mausch committed Jan 26, 2025
1 parent 25ab965 commit 02aa0e3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion metabase-exporter/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ static Config ParseConfig(IConfiguration rawConfig)

static IReadOnlyList<DatabaseId> ParseIgnoreDatabases(IConfiguration rawConfig)
{
return (rawConfig["IgnoreDatabases"] ?? "")
var rawValue = rawConfig["IgnoreDatabases"];
if (string.IsNullOrWhiteSpace(rawValue))
{
return [];
}
return rawValue
.Split(",")
.Select(x => {
try
Expand Down

0 comments on commit 02aa0e3

Please sign in to comment.