Skip to content

Commit

Permalink
Fix for empty list return
Browse files Browse the repository at this point in the history
  • Loading branch information
BlythMeister committed May 8, 2024
1 parent 9ed86d3 commit 6353751
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using System.Text.RegularExpressions;
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");

var baseVersion = "1.24.4";
var baseVersion = "1.24.5";
var subVersion = "";
var subVersionNumber = "";
var isMasterOrDevelop = false;
Expand Down
2 changes: 2 additions & 0 deletions src/Scripts/cloudflareHelper.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ function GetCloudflareDnsIp([string]$token, [string]$domain, [string]$record)
function ExportDnsRecords([string]$token, [string]$zoneid, [string]$domain)
{
$records = New-Object Collections.Generic.List[string]
$records.Add("") #Empty item here to prevent returning null

if($token -eq $null -or $token -eq "")
{
Expand Down Expand Up @@ -138,6 +139,7 @@ function GetCloudflareDnsRecords([string]$token, [string]$domain, [string]$filte
{
Write-Warning "No token so no records located"
$dnsRecords = New-Object Collections.Generic.List[string]
$dnsRecords.Add("") #Empty item here to prevent returning null
}
else
{
Expand Down

0 comments on commit 6353751

Please sign in to comment.