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