diff --git a/src/Config.cs b/src/Config.cs index 74596b5..c51a648 100644 --- a/src/Config.cs +++ b/src/Config.cs @@ -33,7 +33,9 @@ public class Config var data = JSON.Deserialize(File.ReadAllText(path)); var importedPath = Path.Join(Path.GetDirectoryName(path), "imported.txt"); - var apiKey = data.FakeRelayApiKey ?? Environment.GetEnvironmentVariable("FAKERELAY_APIKEY"); + var apiKey = string.IsNullOrEmpty(data.FakeRelayApiKey) + ? Environment.GetEnvironmentVariable("FAKERELAY_APIKEY") + : data.FakeRelayApiKey; Instance = new Config(importedPath, data.FakeRelayUrl, apiKey, data.Tags.ToImmutableArray(), data.ImmutableSites); }