fail safe when no unleash api endpoint configured
This commit is contained in:
@@ -29,7 +29,7 @@ public class ModpackFeatures(ModpackConfig modpackConfig)
|
||||
|
||||
private bool InitializeApi()
|
||||
{
|
||||
if (api == null)
|
||||
if (api == null && !string.IsNullOrWhiteSpace(modpackConfig.UnleashApiUrl) && !string.IsNullOrWhiteSpace(modpackConfig.UnleashInstanceId))
|
||||
{
|
||||
settings = new UnleashSettings
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user