From 0d4a19addd6502721b2c2e5cae031ae5b57b78a3 Mon Sep 17 00:00:00 2001 From: Gal Szkolnik Date: Thu, 20 Jul 2023 23:57:54 +0000 Subject: [PATCH] Fix: Log entries appear multiple times $Close parameter evaluation had a typo, $this removed --- ASSIGNMENT-01.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ASSIGNMENT-01.ps1 b/ASSIGNMENT-01.ps1 index 7d19bbc..bc2ffd1 100644 --- a/ASSIGNMENT-01.ps1 +++ b/ASSIGNMENT-01.ps1 @@ -26,7 +26,7 @@ class LogEntry { [String]$Status, [switch]$Quiet ){ - if( $this.$Close ) { + if( $Close ) { $this.Active = $false } $this.Duration = [DateTime]::Now - $this.Timestamp