Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Jun 14, 2019
1 parent b55f7c5 commit 0a5a424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Private/Main/Send-Notification.ps1
Expand Up @@ -22,7 +22,7 @@ function Send-Notificaton {
$FactsTeams = @()
$FactsDiscord = @()
foreach ($Property in $event.PSObject.Properties) {
if ($Property.Value -ne $null -and $Property.Value -ne '') {
if ($null -ne $Property.Value -and $Property.Value -ne '') {
if ($Property.Name -eq 'When') {
$FactsTeams += New-TeamsFact -Name $Property.Name -Value $Property.Value.DateTime
$FactsSlack += @{ title = $Property.Name; value = $Property.Value.DateTime; short = $true }
Expand Down

0 comments on commit 0a5a424

Please sign in to comment.