build fix

This commit is contained in:
kislovdm
2024-02-07 13:04:29 +03:00
parent 3325102956
commit 071aa73015
2 changed files with 1 additions and 6 deletions
-5
View File
@@ -23,11 +23,6 @@ public class App : IApp
ServerCertificateCustomValidationCallback = (_, _, _, _) => true ServerCertificateCustomValidationCallback = (_, _, _, _) => true
}; };
_settings = new Settings(); _settings = new Settings();
if (string.IsNullOrEmpty(_settings.GitlabUrl))
{
Console.WriteLine("CI_SERVER_URL is not defined.");
return;
}
_client = new GitLabClient(_settings.GitlabUrl, _settings.GitlabToken, httpHandler); _client = new GitLabClient(_settings.GitlabUrl, _settings.GitlabToken, httpHandler);
_customClient = new GitlabCustomClient(_settings.GitlabUrl, _settings.GitlabToken, httpHandler); _customClient = new GitlabCustomClient(_settings.GitlabUrl, _settings.GitlabToken, httpHandler);
} }
+1 -1
View File
@@ -9,5 +9,5 @@ namespace Approve.Checker.Gitlab;
public class ApproversDto public class ApproversDto
{ {
public int CountApprovers { get; set; } = 1; public int CountApprovers { get; set; } = 1;
public List<string> Users { get; set; } public List<string> Users { get; set; } = new();
} }