From 8887da042ac364fee1c22ee90e9343c050c6c8a9 Mon Sep 17 00:00:00 2001 From: Jonathan Colon Date: Thu, 15 Feb 2024 16:19:58 -0400 Subject: [PATCH] Fix CodeQL Alerts --- Src/Public/New-VeeamDiagram.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Src/Public/New-VeeamDiagram.ps1 b/Src/Public/New-VeeamDiagram.ps1 index bec1c82..3a0fb72 100644 --- a/Src/Public/New-VeeamDiagram.ps1 +++ b/Src/Public/New-VeeamDiagram.ps1 @@ -300,14 +300,14 @@ function New-VeeamDiagram { $URLIcon = $false if ($EnableEdgeDebug) { - $EdgeDebug = @{style = 'filled'; color = 'red' } + $script:EdgeDebug = @{style = 'filled'; color = 'red' } $URLIcon = $true - } else { $EdgeDebug = @{style = 'invis'; color = 'red' } } + } else { $script:EdgeDebug = @{style = 'invis'; color = 'red' } } if ($EnableSubGraphDebug) { - $SubGraphDebug = @{style = 'dashed'; color = 'red' } + $script:SubGraphDebug = @{style = 'dashed'; color = 'red' } $URLIcon = $true - } else { $SubGraphDebug = @{style = 'invis'; color = 'gray' } } + } else { $script:SubGraphDebug = @{style = 'invis'; color = 'gray' } } $RootPath = Split-Path (Split-Path $PSScriptRoot -Parent) -Parent $IconPath = Join-Path $RootPath 'icons'