Skip to content

Commit ec612fe

Browse files
committed
🎨 Simplify All-Versions ModuleFastSpec String Representation
1 parent bbc26b2 commit ec612fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ModuleFast.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,8 @@ class ModuleFastSpec {
10311031

10321032
[string] ToString() {
10331033
$guid = $this._Guid -ne [Guid]::Empty ? " [$($this._Guid)]" : ''
1034-
return "$($this._Name)$guid $($this._VersionRange)"
1034+
$versionRange = $this._VersionRange.ToString() -eq '(, )' ? '' : " $($this._VersionRange)"
1035+
return "$($this._Name)$guid$versionRange"
10351036
}
10361037
[int] GetHashCode() {
10371038
return $this.ToString().GetHashCode()

0 commit comments

Comments
 (0)