Skip to content

Commit d6fcefa

Browse files
Merge pull request #86 from ninmonkey/main
fix: `Turtle.get_Position` missing parenthesis on value ( fixes: #85 )
2 parents 29edf4c + 03f6c63 commit d6fcefa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Types/Turtle/get_Position.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
if (-not $this.'.Position') {
2-
$this | Add-Member -MemberType NoteProperty -Force -Name '.Position' -Value [pscustomobject]@{ X = 0; Y = 0 }
2+
$this | Add-Member -MemberType NoteProperty -Force -Name '.Position' -Value ([pscustomobject]@{ X = 0; Y = 0 })
33
}
4-
return $this.'.Position'
4+
return $this.'.Position'

0 commit comments

Comments
 (0)