From 897092a7c8e0cbb5f006ee0a1460c9ef1e574c7c Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Mon, 2 Sep 2024 16:18:38 +0200 Subject: [PATCH] Remove useless check --- Sources/Winget-AutoUpdate/functions/Start-NotifTask.ps1 | 3 --- 1 file changed, 3 deletions(-) diff --git a/Sources/Winget-AutoUpdate/functions/Start-NotifTask.ps1 b/Sources/Winget-AutoUpdate/functions/Start-NotifTask.ps1 index 326a40f..4f5ec01 100644 --- a/Sources/Winget-AutoUpdate/functions/Start-NotifTask.ps1 +++ b/Sources/Winget-AutoUpdate/functions/Start-NotifTask.ps1 @@ -137,9 +137,6 @@ function Start-NotifTask { #Save XML to File $ToastTemplateLocation = "$($WAUConfig.InstallLocation)\config\" - if (!(Test-Path $ToastTemplateLocation)) { - New-Item -ItemType Directory -Force -Path $ToastTemplateLocation - } $ToastTemplate.Save("$ToastTemplateLocation\notif.xml") #Run Notify scheduled task to notify conneted users