Skip to content

Commit

Permalink
Fix: Removed unused EndDate logic to resolve PSScriptAnalyzer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahamedur committed Dec 15, 2024
1 parent 8fc3890 commit a58f426
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Hawk/internal/functions/Initialize-HawkGlobalObject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -346,16 +346,6 @@

}
bugfix/151-ensure-all-scripts-use-utc-time-instead-of-local-time
elseif ($EndDate -gt (Get-Date).ToUniversalTime().AddDays(2)){
Write-Information "EndDate too Far in the future."

# Correct the EndDate if it's too far in the future
[DateTime]$EndDate = (Get-Date).ToUniversalTime().AddDays(1).Date
Write-Information "Setting EndDate to Today."
}

# Confirm EndDate value is set and used
Write-Information ("Final EndDate is " + $EndDate + "`n")
}

else {
Expand All @@ -364,6 +354,7 @@
}



# Determine if we have access to a P1 or P2 Azure Ad License
# EMS SKU contains Azure P1 as part of the sku
# This uses Graph instead of MSOL
Expand Down

0 comments on commit a58f426

Please sign in to comment.