From 5fc5680c75e26350be8440322c055e786aece7a9 Mon Sep 17 00:00:00 2001 From: pblivingston <71585805+pblivingston@users.noreply.github.com> Date: Tue, 25 Nov 2025 21:29:45 -0500 Subject: [PATCH] fix ToString --- lib/iremote.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iremote.ps1 b/lib/iremote.ps1 index e49ae25..31a4d95 100644 --- a/lib/iremote.ps1 +++ b/lib/iremote.ps1 @@ -44,7 +44,7 @@ class IRemote { } [string] ToString() { - if ($this.index.HasValue) { + if ($null -ne $this.index) { return $this.GetType().Name + $this.index } return $this.GetType().Name